[Qt-interest] Tooltip inheriting widget style - how to prevent ?
Stephen Collyer
scollyer at netspinner.co.uk
Tue Apr 27 15:22:07 CEST 2010
I have code like so:
QPushButton* play_button = new QPushButton(number);
play_button->setToolTip(tr("Play %1 audio for paragraph
%2").arg(language).arg(number));
QString style;
style.append("border: 2px solid #8f8f91; border-radius: 6px;");
...
play_button->setStyleSheet(style);
The tooltip for play_button inherits the style set for play_button.
Can anyone suggest a straightforward way to prevent this ?
--
Stephen Collyer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100427/8cf4aa5f/attachment.html
More information about the Qt-interest-old
mailing list