[Interest] QTabWidget & setWindowTitle
Etienne Sandré-Chardonnal
etienne.sandre at m4x.org
Tue Aug 20 12:09:06 CEST 2013
Dear all,
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
windowTitle() automatically?
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
breaking compatibility)
What do you think of this?
I'm using qt 4.8.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130820/fea68c4f/attachment.html>
More information about the Interest
mailing list