To illustrate, this is how a button with input focus looks in case no stylesheet has been set (the upper button has input focus):
![]()
To illustrate, this is how a button with input focus looks in case no stylesheet has been set (the upper button has input focus):
![]()
what style do you use? normally I only know a dashed or dotted rectangle as focus. And how does your complete style sheet looks like? May be you have there other settings causing your problem.
And please add your images at the thread and not at a 3rd party site, so that your post stays consistent also in future.
Lykurg
You can add a pressed and hover state to your style sheet to make it behave as you wish
QPushButton { ... }
QPushButtonressed {...}
QPushButton:hover {...}
QPushButton:disabled {...}
You probably want to put in
color: red;
background: (whatever color you want)
These are the images that were posted above.
I'm using Gnome, Ubuntu 9.04. If I understand correctly, Qt defaults to QGtkStyle in my case. For the application in the screenshots above, no other stylesheets have been specified anywhere except for the
part. So I expect it is buggy behaviour in the QGtkStyle that such a stylesheet causes a complete change in the input focus rectangle appearance. I'll file a bug for this case.
Bookmarks