PDA

View Full Version : How to make hottracking for QPushButton?



oficjalne100
23rd June 2011, 12:03
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

wysota
23rd June 2011, 13:39
Use QToolButton with autoRaise property set to true instead of the push button.