I have read the documentation on the following matter, but Qt
is so overwhelmingly complex I might have missed the piece.
I have created a QMainWindow
and set a title using self.setWindowTitle
. Later in the code I want to simply change this title and so I used the method self.setWindowTitle
again. But this only removed the title from my application, but put the correct title on the panel in Ubuntu.
Further explanation on an Ubuntu system: For example, When I edit this text in the webbrowser window the title says 'How to change the window...' and on the panel on the top of the computer screen I see the text 'Firefox Web Browser'.
My pyside
Qt example now removes the title from the application window and puts it instead on the upper hand panel.
Do I need a different method other than setWindowTitle
to change the title? Maybe from the centralWidget, or MenuBar, or some other element? And why did the title vanish in the first place?
Ubuntu screenshot after first call of setWindowTitle
-the title 'PicSel' is set on the application window title and on the top Ubuntu panel (or whatever this is called):
Ubuntu screenshot after second call of setWindowTitle
- the title is not set on the application window itself, but on the very top panel: