Results 1 to 2 of 2

Thread: How to make hottracking for QPushButton?

  1. #1
    Join Date
    Dec 2010
    Posts
    28
    Thanks
    6
    Thanked 10 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Exclamation How to make hottracking for QPushButton?

    Hi all

    I make a QPushButton flat. So user expect that button shape will appear when he move mouse arrow over the button. If my memory serves me right this is called hottracking. Currently button appear only when user click it - but this is not enought because user must have hint that there is some thing clickable below mouse arrow.
    So: how to enable QPushButton hottracking?

    thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to make hottracking for QPushButton?

    Use QToolButton with autoRaise property set to true instead of the push button.
    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.


Similar Threads

  1. Replies: 1
    Last Post: 5th March 2011, 18:23
  2. Replies: 1
    Last Post: 15th December 2010, 13:20
  3. make a flat QPushButton
    By harmodrew in forum Newbie
    Replies: 2
    Last Post: 6th August 2010, 16:46
  4. Replies: 0
    Last Post: 22nd February 2010, 09:30
  5. Replies: 3
    Last Post: 26th September 2006, 12:16

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.