PDA

View Full Version : Qt::FramelessWindowHint + qgraphicsview + qgraphicwidget + showminimized problem



protoman
13th August 2010, 17:55
Hello, I have a Qgraphicsview window that have the following flags:
window->setWindowFlags (Qt::FramelessWindowHint | Qt::WindowSystemMenuHint | Qt::WindowStaysOnBottomHint);

It does contain some qgraphicswidgets that can be moved around the Qgraphicsview, such as icons.

The issue I have, is that after I execute a window->showMinimized ();, and then click on the windows taskbar to restore the window, all the qGraphicWidgets stop responding to mouse clicks.

Trying to find the cause, I've found that Qt::FramelessWindowHint is the cause (seems like a bug in Qt itself to me), but I need it, because the app is meant to be fullscreen.

Does anyone knows of this problem and possible solutions?

Thanks in advance.

The Storm
13th August 2010, 21:29
I don't know solution for the showMinimized() issue but if the application must go fullscreen you can just use showFullScreen() on the main window and avoid using the Qt::FramelessWindowHint flag.