Can't get flat QToolButton with border on hover stylesheet

Posted by Max on Stack Overflow See other posts from Stack Overflow or by Max
Published on 2010-05-19T07:56:05Z Indexed on 2010/05/19 8:00 UTC
Read the original article Hit count: 218

Filed under:

Hi, all!

I need to implement textbox with inplace button (for search or filter purposes). So, I need to get Qtoolbutton, that is flat and rendered as icon, and obtain the border when hovered by mouse or pressed. And maybe I'd add some almost transparent background on hover too.

I tried to set the following stylesheet:

'border: none; hover {border: 1px} pressed {border: 1px}'

, but it seems that only border set. I tried to set autoRaise() to True and False, I mean, maybe some intersection occured, but haven't succeed.

© Stack Overflow or respective owner

Related posts about qtpyqt