Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.3.2
-
None
-
Windows 7 64 bit
MSVC 2010
Description
- Run the following code:
#include <QApplication> #include <QToolButton> int main(int argc, char *argv[]) { QApplication a(argc, argv); QToolButton button; button.setStyleSheet( "QToolTip {border: 0px;\ background-color: rgb(0, 255, 0);}"); button.setToolTip("my tooltip"); button.show(); return a.exec(); }
- Hover the button.
You'll see a green tool tip:
- Remove "border: 0px;" from the style sheet.
- Run the application and hover the button:
The tool tip shows up in default color:
My understanding is that the background color should still be green.
Attachments
Issue Links
- resulted from
-
QTBUG-20027 Padding in QToolTip stylesheet causes text to show incorrectly
- Closed