[Qt-interest] QMainWindow: setWindowTitle() & setWindowIcon() don't work

Andreas Pakulat apaku at gmx.de
Thu Dec 11 22:02:14 CET 2008


On 11.12.08 11:38:48, Miguel Cardenas wrote:
> Hi list
> 
> I made a small application with the new Qt4 to see the changes respect
> Qt3... it is finished and working so decided to play with the title bar and
> found that setWindowTitle() & setWindowIcon() don't work with QMainWindow...

Note that Qt has no real control over the titlebar of a window. All it can
do is ask the windowmanager to display a certain image or title. However
the windowmanager can ignore that request and do whatever he wants. That
said, this shouldn't be the case on any of the more popular window managers
out there (including windows, macos, kwin, windowmaker, e17 and probably a
lot more).

Andreas

-- 
Fine day for friends.
So-so day for you.



More information about the Qt-interest-old mailing list