Results 1 to 3 of 3

Thread: How to change the icons of windows?

  1. #1
    Join Date
    Nov 2012
    Location
    Russia
    Posts
    231
    Thanks
    118
    Thanked 18 Times in 10 Posts
    Qt products
    Qt5
    Platforms
    Windows Android

    Default How to change the icons of windows?

    Hi,

    How to change the icons of windows?

    46.jpg

    I attached this project. This is QtOpenGL project. It's useful.
    Attached Files Attached Files

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: How to change the icons of windows?

    If this is a new project use QMdiArea instead of QWorkspace. QWorkspace is deprecated.

    Any way, here is the answer.
    Qt Code:
    1. scenePanel->setWindowIcon(QIcon(":/Icons/Scene.png"));
    2. controlPanel->setWindowIcon(QIcon(":/Icons/Control.png"));
    To copy to clipboard, switch view to plain text mode 
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

  3. The following user says thank you to Santosh Reddy for this useful post:

    8Observer8 (23rd August 2013)

  4. #3
    Join Date
    Nov 2012
    Location
    Russia
    Posts
    231
    Thanks
    118
    Thanked 18 Times in 10 Posts
    Qt products
    Qt5
    Platforms
    Windows Android

    Default Re: How to change the icons of windows?

    I will use QMdiArea. Thank you very much

Similar Threads

  1. Replies: 5
    Last Post: 13th October 2010, 05:42
  2. QToolButton - doesn't change icons when pressed
    By walsha3000 in forum Qt Programming
    Replies: 1
    Last Post: 21st February 2010, 11:03
  3. icons are not appearin in windows
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 0
    Last Post: 6th December 2009, 02:30
  4. ToolBar icons hidden in windows
    By giusepped in forum Installation and Deployment
    Replies: 3
    Last Post: 13th January 2009, 16:56
  5. Change icons on static QMessageBox
    By manucorrales in forum Qt Programming
    Replies: 1
    Last Post: 22nd July 2006, 20:00

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.