[Interest] QTabWidget & setWindowTitle
etienne.sandre at m4x.org
Tue Aug 20 12:09:06 CEST 2013
It seems that currently, only QTabWidget::setTabText can be used for
changing the tab captions.
Why not adding a (possibly optional) mechanism for using the child QWidget
In my app, the child tabbed widgets want to change their displayed titles
(for example, to show the unsaved files with an asterisk, as in QtCreator).
It would be very convenient to do this from the child widgets code, instead
of adding a signal in the child, a slot in the main window, a tabbed widget
child lookup and finally a setTabText.
As windowTitle is currently meaningless for tabbed widgets (they have no
title bar), it would be quite logical to allow this property to control the
tab text (optional behavior of QTabWidget disabled by default to avoid
What do you think of this?
I'm using qt 4.8.1
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest