Results 1 to 2 of 2

Thread: QtoolButton icon change on focus

  1. #1
    Join Date
    Mar 2012
    Location
    India
    Posts
    102
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default QtoolButton icon change on focus

    Hi,

    i have set different icons on the four tool buttons in the toolbar i used in my app. I achieved this using the setIcon() property of the toolbutton class. But now i want to change the icon when the tool button is focused. Again i have different on-focus images for all the four tool buttons. How do I achieve this?

    I tried using the CSS and <toolbutton_objectname>:focus {image: url("...");} as well as <toolbutton_objectname>:focus {border-image: url("...");} to change it on focus but it did not work.

    - Charvi

  2. #2
    Join Date
    Mar 2012
    Location
    India
    Posts
    102
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: QtoolButton icon change on focus

    Bump .....

Similar Threads

  1. Replies: 0
    Last Post: 23rd March 2011, 05:07
  2. Replies: 1
    Last Post: 18th November 2010, 07:39
  3. QToolButton icon did not appear
    By mismael85 in forum Qt Programming
    Replies: 4
    Last Post: 24th March 2008, 18:13
  4. QToolButton icon not updated in overflow menu
    By pabakertx in forum Qt Programming
    Replies: 2
    Last Post: 26th September 2007, 13:48
  5. QToolButton will not display its icon
    By JimBrown in forum Qt Programming
    Replies: 6
    Last Post: 9th March 2007, 18:54

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.