Qt-interest Archive, August 2007
title bar label
Message 1 in thread
Hello all,
It is quite common practice to place the path of file (...) in the title
bar
of a Gui. Something like "MyApp - [/path/to/my/file]". Problem here is
that paths can be quite lengthy, so that some dynamic adjustements
should be applied to compact it if necessary.
So my question is: is there a way to find the label that displays the text
in the title bar? Or does anyone have any other ideas how to handle this?
Jürgen
--
[ signature omitted ]
Message 2 in thread
reimplement QWidget::setWindowTitle ( const QString & ) is what you want?
the caption is later on taken from the window manager passed to the decoration
(on most unix DE - don't ask me about windows an mac) and painted there (so
they can "polish" it as well), but just passing as squeezed string should do
- yesno?
Thomas
Am Freitag, 10. August 2007 16:13 schrieb Juergen Urner:
> Hello all,
>
> It is quite common practice to place the path of file (...) in the title
> bar
> of a Gui. Something like "MyApp - [/path/to/my/file]". Problem here is
> that paths can be quite lengthy, so that some dynamic adjustements
> should be applied to compact it if necessary.
>
> So my question is: is there a way to find the label that displays the text
> in the title bar? Or does anyone have any other ideas how to handle this?
>
>
> Jürgen
>
>
>
>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body. List archive and information:
> http://lists.trolltech.com/qt-interest/
--
[ signature omitted ]