QWidget, add TitleBar and custom button
-
wrote on 19 Jul 2012, 13:30 last edited by
Hello Guys, is possibile to customize a QWidget in order to add a Title bar and a custom button?
Thank you in advance -
wrote on 19 Jul 2012, 13:38 last edited by
QDockWidget provides a nice framework for this. If you need extra functionality outside of what the QDockWidget default title bar offers, you can roll your own using setTitleBarWidget().
-
wrote on 20 Jul 2012, 10:34 last edited by
No idea what you want to achieve. All top-level widgets get a title bar automatically. What do you mean by a 'custom button', and where would you like to have it? In the title bar itself, or somewhere else?
-
wrote on 20 Jul 2012, 10:41 last edited by
I want to change icon e position of the "x" button. Is that possible?
-
wrote on 20 Jul 2012, 10:43 last edited by
No, there is no Qt API do that.
Having said that:
- You may be able to use platform depended API, or
- You could hide the default title bar, and implement your own
2/5