Results 1 to 7 of 7

Thread: SetIcon ON for pushbutton does not work

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: SetIcon ON for pushbutton does not work

    Do you want to change the icon of the button or do you want to change functionality of the button? If the latter, then have two different buttons, hide one and show the other.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    Sep 2010
    Posts
    654
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    56
    Thanked 1 Time in 1 Post

    Default Re: SetIcon ON for pushbutton does not work

    I have discover that this is the best option (have two different buttons ) , because it is impossible to set the 'grey' disable icon in case of you want a different icon for normal and disabled.
    When you set the normal icon, designer automatically converts it to grey and set the disabled icon. If you want a different 'grey' icon and try to set it , designer choose the new 'clean' (not greyed) icon.
    So, I'm going to work with two buttons.
    Thanks.

Similar Threads

  1. Replies: 3
    Last Post: 24th July 2011, 22:13
  2. Replies: 3
    Last Post: 29th April 2011, 08:54
  3. QAbstractButton::setIcon | Icon posiition
    By ouekah in forum Newbie
    Replies: 2
    Last Post: 10th May 2010, 23:56
  4. QTreeWidget Crashing while setText,setFont,setIcon
    By santosh.kumar in forum Qt Programming
    Replies: 3
    Last Post: 19th February 2008, 11:36
  5. setIcon() - different QIcon states?
    By AaronMK in forum Qt Programming
    Replies: 1
    Last Post: 29th January 2008, 03:10

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.