Results 1 to 1 of 1

Thread: OSX QApplication::setWindowIcon(QIcon());

  1. #1
    Join Date
    Apr 2011
    Posts
    132
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: OSX QApplication::setWindowIcon(QIcon());

    Hi

    I need the icon in DOCK so it works great using

    Qt Code:
    1. QApplication::setWindowIcon(QIcon());
    To copy to clipboard, switch view to plain text mode 

    But this displays the icon on the mainwindow next to the title. Is there a way to get rid of it ?

    Thanks


    Added after 7 minutes:


    Quick fix

    in mainwindow constructor

    Qt Code:
    1. this->setWindowIcon(QIcon());
    To copy to clipboard, switch view to plain text mode 

    and use

    Qt Code:
    1. QApplication::setWindowIcon(DOCKICON);
    To copy to clipboard, switch view to plain text mode 

    to draw the dock icon
    Last edited by migel; 13th October 2011 at 16:22.

Similar Threads

  1. setWindowIcon
    By dragon in forum Qt Tools
    Replies: 3
    Last Post: 3rd December 2012, 06:41
  2. setWindowIcon memory leak?
    By Romi in forum Qt Programming
    Replies: 0
    Last Post: 25th December 2009, 16:43
  3. setWindowIcon function
    By Peppy in forum Qt Programming
    Replies: 5
    Last Post: 9th November 2009, 09:46
  4. Qt3 to Qt4 transition, setWindowIcon() problems
    By watashi16 in forum Qt Programming
    Replies: 5
    Last Post: 13th December 2007, 20:18
  5. Replies: 2
    Last Post: 31st May 2006, 21:52

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.