Results 1 to 2 of 2

Thread: Changing the Icon that is displayed in the Task Bar on Wundows

  1. #1
    Join Date
    Nov 2011
    Posts
    30
    Qt products
    Qt3
    Platforms
    MacOS X

    Default Changing the Icon that is displayed in the Task Bar on Wundows

    Just need a pointer on where to go for this data.

    What is the correct way to change the task bar bitmap for a program running? The icon for miscrosoft windows that is is displayed in the task bar at the bottom of the screen when by App is running.

    Do I use the QSystemTrayIcon class?

  2. #2
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Thanks
    3
    Thanked 106 Times in 103 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Changing the Icon that is displayed in the Task Bar on Wundows

    if you mean the task bar then it's:
    Qt Code:
    1. QWidget::setWindowIcon(QIcon(":/some.icon"));
    To copy to clipboard, switch view to plain text mode 
    if you mean the icon tray (usually in bottom right corner) then it's:
    Qt Code:
    1. QSystemTrayIcon* icon = new QSystemTrayIcon(this);
    2. icon->setIcon(QIcon(":/some.icon"));
    3. icon->show();
    To copy to clipboard, switch view to plain text mode 
    But I guess it's not the second option as you would have to use it to show the icon in the first place.

Similar Threads

  1. Systray icon no displayed under windows seven
    By flamaros in forum Qt Programming
    Replies: 2
    Last Post: 12th February 2011, 14:10
  2. Replies: 2
    Last Post: 28th September 2010, 10:34
  3. Changing icon in sidebar at QFileDialog possible ?
    By skyperhh in forum Qt Programming
    Replies: 0
    Last Post: 18th November 2009, 11:15
  4. Replies: 2
    Last Post: 10th August 2009, 09:45
  5. Replies: 20
    Last Post: 15th August 2008, 23:19

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.