dictoon
29th July 2010, 11:42
Is it actually possible to customize the look of the "tear-off" handle of a QMenu with stylesheets? The documentation (http://doc.qt.nokia.com/4.6/stylesheet-reference.html) seems to indicate it's possible: "The tear-off is styled using the ::tear-off" (on styling QMenu).
Here's what I've tried:
QMenu::tear-off
{
background-color: green;
color: red;
border: 10px solid yellow;
}
However this has no effect whatsoever, neither on Windows (Vista) nor on Mac OS X (10.4). I also tried "QMenu::tear-off::item".
I'm using Qt 4.6.2, latest stable.
Cheers,
Franz
Here's what I've tried:
QMenu::tear-off
{
background-color: green;
color: red;
border: 10px solid yellow;
}
However this has no effect whatsoever, neither on Windows (Vista) nor on Mac OS X (10.4). I also tried "QMenu::tear-off::item".
I'm using Qt 4.6.2, latest stable.
Cheers,
Franz