Unsolved How the close button in titlebar don't show
-
in Qt 5.7.0, I use the example "window.qml".
In this example, I only want the min and max button, and don't show the close button. So I use "Qt.CustomizeWindowHint | Qt.WindowMinMaxButtonsHint" to set the window's flags. But it seems doesn't work.What can I do for it?
-
@soledadchao Add
Qt.WindowTitleHint
to it. -
it seems doesn't work
-
@p3c0 it seems doesn't work
-
@soledadchao Did you use all 3 flags ?
-
@p3c0 yes
-
@soledadchao Try one of these:
flags: Qt.WindowMinMaxButtonsHint flags: Qt.Window | Qt.WindowMinMaxButtonsHint flags: Qt.WindowTitleHint | Qt.CustomizeWindowHint | Qt.WindowMinMaxButtonsHint
All of these work on Ubuntu system. I dont have a Windows machine at hand to test it out.
-
@p3c0 I have try all of the three flags, but it doesn't work....
I use the "qt-opensource-windows-x86-mingw530-5.7.0". -
@soledadchao Can you try the same for Qt Widgets for eg.
QDialog
?