QTabWidget background not transparent
-
Does anyone know why qTab is not transparent?
I have a control on the back, but still covered by QTab. Right side is a button stackedWidget(didn't set stylesheet for StackedWidget) .ui->tabWidget->setAttribute(Qt::WA_TranslucentBackground); ui->tabWidget->setStyleSheet("background-color: transparent"); ui->tab->setAttribute(Qt::WA_TranslucentBackground); ui->tab->setStyleSheet("background-color: transparent"); ui->tab_2->setAttribute(Qt::WA_TranslucentBackground); ui->tab_2->setStyleSheet("background-color: transparent");
Thanks
-
While looking for similar problems on google I found this:
http://www.qtforum.org/post/96233/qtabwidget-background-color-problem.html#post96233I can see from your screenshot that you're not on Windows, but maybe the trick still does the job. Other than that, I found other issues with background transparency related to Qt 4, but nothing else.