QToolTip opacity
Unsolved
General and Desktop
-
@minjunkim said in QToolTip opacity:
setStyleSheet("QToolTip { border: 2px solid darkkhaki; padding: 5px; border-radius: 3px; opacity: 100; }");
setStyleSheet("QToolTip { border: 2px solid darkkhaki; padding: 5px; border-radius: 3px; background-color: rgba(255,255,0,0); }");
-
Hi what platform are you on ?
I had issue on windows 8/10 to make it transparent. -
I never got it to work on win 10. ( worked fine in linux, win 7)
I didn't find any solutions back then but maybe
other have found way now. -
I know this topic is too old but think it help anyone else.
If set stylesheet right after initialisatioin of QApplication like thatQApplication a(argc, argv); qApp->setStyleSheet("QToolTip {opacity: 150;}");
it's take effect.
Then you can just change background or font colors in widgets
mybutton->setToolTip("this test"); mybutton->setStyleSheet("QToolTip {background-color: rgb(0, 0, 0); color: rgb(200, 200, 200);}");
-
@Dominikanetz it doesn't work on linux