Does anybody know how can I customize title bar of a main window in QT? I would like to make some custom painting over the “normal” drawing.
The QT version I’m interested in is 4.5 or 4.6 (beta)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Actually, the title bar is a part of what the “window manager” adds. This could be Windows, OS X or whatever you are running in your X11 environment. Either way, you need to remove the bar and replace it with one of your own. To do this, use the Qt::WindowFlags (http://doc.qt.digia.com/4.5/qt.html#WindowType-enum) to make the titlebar go away. This does, however, make your application sensitive to platforms and, on X11, window manager. You can only hint that you want to have a window without a titlebar…