Results 1 to 3 of 3

Thread: How to not darken selected icons ?

  1. #1
    Join Date
    Sep 2009
    Posts
    19
    Qt products
    Platforms
    Unix/X11

    Default How to not darken selected icons ?

    When an item is selected, the icon gets darkened. How to suppress that behavior? For what I've tried, style sheets and palettes change everything around the icon but not the icon itself.

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to not darken selected icons ?

    What are you using the icons in ??
    You can try QIcon::addPixmap to set same pixmap for all states.

    If you are using views, you can use delegates... and while drawing the icons, set its option to not selected.

  3. #3
    Join Date
    Sep 2009
    Posts
    19
    Qt products
    Platforms
    Unix/X11

    Default Re: How to not darken selected icons ?

    Thanks a lot. I wasn't looking in the right direction.

Similar Threads

  1. Changing Icons
    By srohit24 in forum Qt Programming
    Replies: 2
    Last Post: 22nd October 2009, 09:31
  2. Getting the selected row
    By k12yp70n in forum Newbie
    Replies: 4
    Last Post: 4th June 2009, 16:01
  3. Trolltech example - getting rid of icons?
    By teele in forum Qt Programming
    Replies: 1
    Last Post: 26th February 2009, 18:59
  4. Where to get Icons from
    By pospiech in forum General Discussion
    Replies: 4
    Last Post: 19th December 2008, 21:14
  5. SVG icons on a QPushButton?
    By Kumula in forum Qt Programming
    Replies: 2
    Last Post: 22nd May 2006, 21:03

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.