Qt Forum - programming with C++ and Qt
Register Calendar Members List Team Members Search Frequently Asked Questions Go to the Main Page

Qt Forum - programming with C++ and Qt » QtForum.org » Qt » Qt Programming » Read application ICON and set it as Toolbar Image » Hello Guest [Login|Register]
Last Post | First Unread Post Print Page | Recommend to a Friend | Add Thread to Favorites
Post New Thread Post Reply
Go to the bottom of this page Read application ICON and set it as Toolbar Image
Author
Post « Previous Thread | Next Thread »
sumantar
Assistant


Registration Date: 09.05.2008
Posts: 2

Level: 2 [?]
Experience: 15
Next Level: 26

11 points of experience needed for next level

Read application ICON and set it as Toolbar Image Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Hi,

I am developing one application using QT. I want to read the application ICON and set this ICON as the image of my toolbar. I used the following code.

QPixmap *appIcon=const_cast<QPixmap*> (mainWindow->icon());
QPixmap mapp=*appIcon;
mainWindow->primaGamesAction->setIconSet(QIconSet(mapp));

mainWindow is the main UI. I just read the icon of this widget and want to set the tool bar Image with this icon.

This does not work. Please suggest how to do this.

Thanks in advance.

Best of regards,
Su
09.05.2008 08:53 sumantar is offline Send an Email to sumantar Search for Posts by sumantar Add sumantar to your Buddy List
Tree Structure | Board Structure
Jump to:
Post New Thread Post Reply
Qt Forum - programming with C++ and Qt » QtForum.org » Qt » Qt Programming » Read application ICON and set it as Toolbar Image

views today: 9.645 | views yesterday: 17.520 | total views: 10.243.014


Klebekork Shop - Linux Shop - Kontaktanzeigen - Linux Forum -  SMS Gewinnspiel -  Hotels -  Stadtpläne -  Branchenbuch & Stadtplan

Branchenbuch Österreich - Branchenbuch Niederlande - Portugal Branchenverzeichnis - Spanien Branchenverzeichnis 
Telefonbuch - Branchenbuch Frankreich