Added window role to image overlay

This commit is contained in:
Thulinma 2021-10-20 00:41:32 +02:00
parent f36b3836a6
commit 9996411d15
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ ImageOverlay::ImageOverlay(QPixmap image, QWidget *parent)
setParent(nullptr);
setWindowFlags(windowFlags() | Qt::FramelessWindowHint);
setWindowRole("imageoverlay");
setAttribute(Qt::WA_NoSystemBackground, true);
setAttribute(Qt::WA_TranslucentBackground, true);