How do I create a window with the menu in the title bar?
-
Hi,
I'ld like to create a window with a menu in the title bar, like Visual Studio 2019 does.
See screenshot:
Is this possible in Qt and if so, what window flags do I need to use? (I don't need a cross platform solution; I only need it on windows).
I've managed to get close to this by using a frameless QMainWindow and adding the minimise/close buttons as a corner widget to its menu bar but this breaks the ability to minimise the application by clicking the app icon in the task bar.
-
Hi,
I'ld like to create a window with a menu in the title bar, like Visual Studio 2019 does.
See screenshot:
Is this possible in Qt and if so, what window flags do I need to use? (I don't need a cross platform solution; I only need it on windows).
I've managed to get close to this by using a frameless QMainWindow and adding the minimise/close buttons as a corner widget to its menu bar but this breaks the ability to minimise the application by clicking the app icon in the task bar.
-
@anil_arise said in How do I create a window with the menu in the title bar?:
@gvanvoor this git code will help you.
No it doesn't. That's exactly the same as what I already tried: a frameless QMainWindow. The resulting window needs to have a "real" minimise button in order for the click on the application icon in the taskbar to minimise the application.
-
Hi
Basically you cannot do this with Qt in any easy way.Its a custom solution reimplementing all the features like min/max and resize.
The best i could find was
https://github.com/dfct/TrueFramelessWindow -
Hi
Basically you cannot do this with Qt in any easy way.Its a custom solution reimplementing all the features like min/max and resize.
The best i could find was
https://github.com/dfct/TrueFramelessWindow@mrjj said in How do I create a window with the menu in the title bar?:
Hi
Basically you cannot do this with Qt in any easy way.Its a custom solution reimplementing all the features like min/max and resize.
The best i could find was
https://github.com/dfct/TrueFramelessWindowThat does exactly what I need. Thanks.
-
S SGaist referenced this topic on