Results 1 to 6 of 6

Thread: Qt 5.02 - How to add a MacOS Dock Icon?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Apr 2013
    Posts
    4
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt 5.02 - How to add a MacOS Dock Icon?

    Yes, I went to Build -> Run qmake and it still didn't change the icon
    Here is my icon in the resources.qrc
    ://images/mac/highres.icns

    In two of the constructors I tried
    Qt Code:
    1. #ifdef Q_OS_MAC
    2. this->setWindowIcon(QIcon("://images/mac/highres.icns"));
    3. #endif
    To copy to clipboard, switch view to plain text mode 

    Both didn't work???

    I also added the below snippet to my .pro file
    Qt Code:
    1. macx {
    2. ICON = images/mac/highres.icns
    3. }
    To copy to clipboard, switch view to plain text mode 
    I reran qmake again but still no icon

    I also took out the macx{ } parenthesis and ran qmake but to no avail

    What else do I do? Someone please help me.
    Last edited by relipse; 23rd April 2013 at 08:17. Reason: i tried qmake

Similar Threads

  1. MAC DOCK display number in icon
    By migel in forum Newbie
    Replies: 0
    Last Post: 6th September 2011, 09:58
  2. Replies: 0
    Last Post: 17th March 2010, 13:25
  3. forcing dock windows to dock?
    By eric_vi in forum Qt Programming
    Replies: 3
    Last Post: 9th August 2009, 15:32
  4. Couple of questions: main window icon + toolbar icon
    By bpackard in forum Qt Programming
    Replies: 0
    Last Post: 20th March 2008, 19:03
  5. Mac application and the Dock Icon
    By sekelsenmat in forum Qt Programming
    Replies: 3
    Last Post: 26th September 2007, 10:23

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.