[Qt-interest] Qt Stylesheets and default icon for checked menu items

NoRulez norulez at me.com
Tue May 10 13:26:47 CEST 2011


Hi,

 

I have a Qt Stylesheet for my application, the problem is when I style
QMenu, then the default icon for checked items aren’t shown.

If I use the following stylesheet, then the checked icons have a gray
background, but how can I use the default icons?

 

QMenu::icon:checked {

    background: gray;

    border: 1px inset gray;

    position: absolute;

    top: 1px;

    right: 1px;

    bottom: 1px;

    left: 1px; 

}

 

Thanks in advance

 

Best Regards

NoRulez

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110510/20599817/attachment.html 


More information about the Qt-interest-old mailing list