Is it possible to add toolbuttons in title bar of MainWindow?
-
I want to add tool buttons to the title bar of the QMainWindow. But I found there is no any direct method to do that. Any suggestion to do this?
-
since the window frame is handled by the OS you don't have a chance to add it with Qt yet.
You will need to implement your own window frame with Qt widgets to do so. -
Oh thank you. Means setting FramelessWindowHint and then have to make frame. :|
-
you can make a custom toolbar widget and add it. i have worked on something simlar and so this may work
-
exactly.
Found "this ":http://www.codeproject.com/articles/415102/winforms-form-skin(for windows) on the web.
You may want to "add a feature request":https://bugreports.qt-project.org and hope it will be implemented in QtWindowsExtras module sometime :) -
You can also implement it and add a merge request to Qt :-)
-
[quote author="tanmay2227" date="1381833704"]you can make a custom toolbar widget and add it. i have worked on something simlar and so this may work[/quote]
Thank you so much for hint. I am trying this idea.
-
[quote author="raven-worx" date="1381833725"]exactly.
Found "this ":http://www.codeproject.com/articles/415102/winforms-form-skin(for windows) on the web.
You may want to "add a feature request":https://bugreports.qt-project.org and hope it will be implemented in QtWindowsExtras module sometime :)[/quote]raven :) thanks alot for the link that is exactly I wanted. Though the code seems a bit more than what I wanted but I am going to dig it to get the idea.
Also Thanks for link for feature request and idea of Qt Windows Extras but I checked it is not available in 4.8.10 that is I am using, anyways in future it will be a point to keep in mind. Thanks again. -
[quote author="Gerolf" date="1381846821"]You can also implement it and add a merge request to Qt :-)[/quote]
I will try if I could code so efficient. Thanks for the idea.