PDA

View Full Version : [Qt 4.6.3 Linux] style sheet focus on QPushButton



snooker9
5th March 2012, 14:27
Hi all!

I'm trying to set the style sheet on my QPushButton to design the frame which seems to be the focus: this frame seems to change of widget when I use "Tab" key.
In the following screenshot, you'll see the button "Valider" which is surrounded by a black frame:
http://www.zimage.fr/images/98321capture.png (http://www.zimage.fr/photo.php?id=98321)Zimage (http://www.zimage.fr)

I would like to edit his look & feel.
I've tried this code:


QPushButton::focus {
border: 1px solid blue;
}

But it doesn't work...

Someone there a solution?

I thank you in advance!