Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.5.0 Alpha
-
Linux
Description
If you make a frameless window with setWindowFlags(Qt::FramelessWindowHint);
then in qxcbwindow.cpp, MWM_FUNC_MINIMIZE is not set. In some window managers, that means you cannot minimize the window. This is relevant for applications that wish to forego the window manager titlebar and have a custom one instead.
http://comments.gmane.org/gmane.comp.desktop.mate.devel/125
The workaround is to set
setWindowFlags(Qt::FramelessWindowHint | Qt::WindowMinimizeButtonHint)
An example of an app which does this is here:
https://github.com/micku7zu/QtOneFM/blob/master/mainwindow.cpp
Further discussion of the problem:
http://forum.qt.io/topic/42893/qt-c-windowminimized-no-reaction-on-ubuntu
Attachments
Issue Links
- relates to
-
QTBUG-44195 frameless window can't minimize or maximize on mac
-
- Closed
-
-
QTBUG-64994 CLONE - frameless window can't minimize or maximize on mac
-
- Closed
-
-
QTBUG-69462 setWindowFlag(Qt::WindowCloseButtonHint, false) doesn't remove close button from dialog boxes
-
- Closed
-
-
QTBUG-16433 Widget with Qt::FramelessWindowHint flag is not minimized
-
- Closed
-
-
QTBUG-4262 Allow minimizing frameless windows from the taskbar
-
- Closed
-
-
QTBUG-33522 showMinimized() doesn't work when using FramelessWindowHint on Mac
-
- Closed
-