Results 1 to 2 of 2

Thread: How Do I Change the Icon Display Property on hover with QToolButton?

  1. #1
    Join Date
    May 2010
    Posts
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How Do I Change the Icon Display Property on hover with QToolButton?

    What I am trying to do is simply have a QToolButton that when nothing is happening to it only show the icon, but when the user hovers over the icon show the text below it.

    I know how to change the Icon/Text properties to show it but I can't figure out how to get it to work when the button is hovered?

    Thanks,

  2. #2
    Join Date
    Feb 2010
    Location
    Wokingham, United Kingdom
    Posts
    36
    Thanks
    7
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How Do I Change the Icon Display Property on hover with QToolButton?

    set the Tooltip property to the text you want to show

Similar Threads

  1. porting of icon property problem
    By batileon in forum Qt Programming
    Replies: 1
    Last Post: 26th July 2008, 02:15
  2. QToolButton icon did not appear
    By mismael85 in forum Qt Programming
    Replies: 4
    Last Post: 24th March 2008, 19:13
  3. QToolButton icon not updated in overflow menu
    By pabakertx in forum Qt Programming
    Replies: 2
    Last Post: 26th September 2007, 14:48
  4. QToolButton will not display its icon
    By JimBrown in forum Qt Programming
    Replies: 6
    Last Post: 9th March 2007, 19:54
  5. QPushbutton Flat property and icon appearance.
    By darpan in forum Qt Programming
    Replies: 1
    Last Post: 4th November 2006, 09:30

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.