How to make the QAplication ToolTip background transparent?
-
I'm trying to find a way to set the background color of any tooltip of the entire qapplication to transparent.
I tried:
QPalette palette = QToolTip::palette(); //palette.setColor(QPalette::Window, QColor(0, 0, 0, 0)); palette.setColor(QPalette::Base, Qt::transparent); QToolTip::setPalette(palette);
Also:
qApp->setStyleSheet("QToolTip: { background-color: transparent; } ");
But the tooltip background is not getting transparent.
Theres something else i could try? -
I'm trying to find a way to set the background color of any tooltip of the entire qapplication to transparent.
I tried:
QPalette palette = QToolTip::palette(); //palette.setColor(QPalette::Window, QColor(0, 0, 0, 0)); palette.setColor(QPalette::Base, Qt::transparent); QToolTip::setPalette(palette);
Also:
qApp->setStyleSheet("QToolTip: { background-color: transparent; } ");
But the tooltip background is not getting transparent.
Theres something else i could try?