Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Is there possible to set QTabWidget background transparent (same as the form background)?
I tried this in the main.cpp but nothing has changed, I got a white background:
QPalette q= form.widget.tab->palette();
form.widget.tab->setStyleSheet("background-color: rgba( 255, 255, 255, 0% );" );
What I'm doing wrong?
Is there possible to write it in the qss file?
Thank you for your help!!!!
[Edit: Please be sure and wrap your code in @ blocks; mlong]
soundar last edited by
Try to use this command.It gives the solution for your problem.
QPalette palette = view->palette();
soroush last edited by
Try replacing this:
"background-color: rgba( 255, 255, 255, 0% );"
with this one:
I did it but still getting a white background instead of transparent
you need to declare view??
KA51O last edited by
Have a look at at "this link":http://qt-project.org/forums/viewthread/1107. There are plenty of threads related to the topic of "transparent background":http://qt-project.org/search?search=transparent+background.