Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How can I add a label to a QWidget's title bar?
Sorin last edited by
I want to add a label to a QMainWindow title bar, do you know if it is possible to do that and how should I do it ?
thorbjorn last edited by
Unless you mean a tool bar or the status bar, this is in general not possible since the title bar is outside of Qt's control (it is provided by the window manager).
There may be platform-specific solutions for adding things to the title bar though. At least I've seen applications that appear to do that on Windows and Mac. But you would have to use the platform API for that.