Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.4.2
-
None
Description
The code below removes the window minimize and maximize buttons and works on Windows 10 and Ubuntu X11, but not on Ubuntu Wayland:
#include "widget.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); Widget w; w.resize(250, 150); // Remove minimize maximize button works on Windows 10 / Ubuntu X11, not Ubuntu Wayland: w.setWindowFlags(w.windowFlags() & Qt::CustomizeWindowHint); w.setWindowFlags(w.windowFlags() & ~Qt::WindowMinMaxButtonsHint); w.show(); return a.exec(); }
Ubuntu Wayland not working:
Ubuntu X11 works:
Windows 10 works:
Attachments
Issue Links
- relates to
-
QTBUG-101559 QT-Wayland: QMainWindow - Maximize and Minimize button is not able to disable using set flags
-
- Closed
-