QML only display Close Windows hint
-
wrote on 7 Aug 2018, 14:37 last edited by Slei 8 Jul 2018, 14:37
Hey,
I'm trying to hide the minimize and and maximize buttons from the title bar and came across the window hint flags CustomizeWindowHint , WindowMinMaxButtonsHint and WindowCloseButtonHint
hiding all of them works fine in qml:flags: Qt.WindowTitleHint
but trying to only display the close button doesn't work somehow with the custom flag:
flags: Qt.CustomizeWindowHint | Qt.WindowCloseButtonHint
can anyone help?
-
wrote on 20 Aug 2018, 10:21 last edited by
ok i've found a solutionj to this. Windows probably requires certain flags to be set, like Dialog:
flags: Qt.WindowCloseButtonHint | Qt.CustomizeWindowHint | Qt.Dialog | Qt.WindowTitleHint
this works for Closehint only
-
Hey,
I'm trying to hide the minimize and and maximize buttons from the title bar and came across the window hint flags CustomizeWindowHint , WindowMinMaxButtonsHint and WindowCloseButtonHint
hiding all of them works fine in qml:flags: Qt.WindowTitleHint
but trying to only display the close button doesn't work somehow with the custom flag:
flags: Qt.CustomizeWindowHint | Qt.WindowCloseButtonHint
can anyone help?
-
wrote on 13 Aug 2018, 08:11 last edited by
Has anyone any idea?, I'm sure windows supports "close hint only", but I'm not sure if QT supports it.
-
Have you tried this ?
flags: Qt.CustomizeWindowHint | Qt.WindowTitleHint | Qt.WindowCloseButtonHint
It works on mac.
-
Have you tried this ?
flags: Qt.CustomizeWindowHint | Qt.WindowTitleHint | Qt.WindowCloseButtonHint
It works on mac.
wrote on 13 Aug 2018, 10:16 last edited by@GrecKo said in QML only display Close Windows hint:
Qt.CustomizeWindowHint | Qt.WindowTitleHint | Qt.WindowCloseButtonHint
yeah, it displays only the title bar without any buttons on Win10, so maybe qt doesn't support this for windows, or windows doens't support this in general.
-
wrote on 13 Aug 2018, 11:19 last edited byThis post is deleted!
-
wrote on 17 Aug 2018, 08:45 last edited by
I've checked again in some windows forums and windows should be capable of displaying only the close hint in the title bar.
-
wrote on 20 Aug 2018, 10:21 last edited by
ok i've found a solutionj to this. Windows probably requires certain flags to be set, like Dialog:
flags: Qt.WindowCloseButtonHint | Qt.CustomizeWindowHint | Qt.Dialog | Qt.WindowTitleHint
this works for Closehint only