[Qt-interest] Setting the Window Icon
O'carroll, David T
david.t.o'carroll at intel.com
Tue Feb 15 15:10:09 CET 2011
Hi,
I am trying to integrate a demo into the Meego IVI UX. I am trying to set the window icon of an application to a different image depending on what QWidget is running. The QWidget is launched as the application starts and is passed to the application as an argument (so it only needs to be set once). Currently I am setting it in main.cpp with:
QApplication::setWindowIcon(QIcon("/path/to/image.png"));
However, this leads to somewhat random results wherein the image is set sometimes and not others. Is there something I'm missing about QIcon (I'm used to working with QPixmap) or am I simply going about this the wrong?
Regards,
Dave
--------------------------------------------------------------
Intel Shannon Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263
Business address: Dromore House, East Park, Shannon, Co. Clare
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110215/0bf32857/attachment.html
More information about the Qt-interest-old
mailing list