I have a top level Frameless QMainWindow
with Translucency. I have the undesirable effect of click-through (to the underlying window) in the transparent portions of the window.
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow *window = new MainWindow;
window->setWindowFlags(window->windowFlags() | Qt::FramelessWindowHint);
window->setAttribute(Qt::WA_TranslucentBackground);
QLabel *label = new QLabel("Hello World!");
// window->setStyleSheet("background-color: rgba(0,0,0,1%)");
window->setCentralWidget(label);
window->show();
return a.exec();
}
Is this the expected behavior and, if not, is there a way to work around this.