How to set different text for a QDockWidget's tab and window title?
-
Hi everyone,
We are trying to figure out how not to link the QDockWidget's tab title to the windows title.
As you can see on the following picture, the QDockWidget's tab title is the same as the window title and we would like to force them to be different.
Unfortunatly, after some research we found the https://stackoverflow.com/questions/47518075/how-to-set-different-text-for-a-qdockwidgets-tab-and-window-title thread which deals with Python and we are using C++.
Is someone aware of a solution which does not force us to redefine the paintEvent function ?
-
Hi,
What about connecting a slot to the topLevelChanged signal and change the text accordingly ?
-
Hi,
First, thank you for your answer !
AFAIK this signal allows to know when the window is floating or not. Unfortunately, I do not see how to use it to change the name in the bottom red circle of the picture and not the title in the top red circle of the previous picture.
I would like to "unlink" the two names in the red circle of the picture in the #1 message.