Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.15.18, 6.8.0
Description
A minimal snippet:
#include <QApplication> #include <QPushButton> #include <QVBoxLayout> int main(int argc, char *argv[]) { QApplication a(argc, argv); QWidget *main = new QWidget; QVBoxLayout *layout = new QVBoxLayout(main); main->setStyleSheet("QToolTip {" "padding: 20px;" "}"); QPushButton *btn1 = new QPushButton("Button 1", main); btn1->setToolTip("Tooltip 1"); QPushButton *btn2 = new QPushButton("Button 2", main); btn2->setToolTip("Tooltip 2"); layout->addWidget(btn1); layout->addWidget(btn2); main->setLayout(layout); main->show(); return a.exec(); }
So simply 2 buttons with tooltip set, and stylesheet is set to main window (but it actually does not change anything if stylesheet is set to 2 buttons individually).
Problem being observed:
I hover cursor over one button and tooltip is correctly padded (I can see larger box). But once I move my cursor QUICKLY (maybe need to be quick enough so that the first tooltip is not yet completely gone) over to the other button then the tooltip for that button is not padded at all. Only if I can make sure that the first tooltip is gone (by move cursor away and then wait a while before I hover over the other button) then the new tooltip can be padded correctly.