0

I have a QMdiArea in which we have a 3D view and a tab bar. enter image description here

I want to make the background of the tab bar background to be transparent so that our 3D view area is bigger. I tried to make the tab bar background transparent with :

tab->setStyleSheet(QString::fromLatin1("QTabBar { background-color: transparent; }"));
tab->setDocumentMode(true);

But the issue is that there is nothing BELOW the tabbar. Only the empty mainwindow. Which makes sense because the QTabbar and the Mdi content widget do not overlap. So what I want is the QTabBar to draw ON TOP of the MDI content. This way when it will be transparent it will show the 3D view underneath. See the following drawing to explain, on the left the default MdiArea behaviour, on the right what I want : enter image description here

PaddleStroke
  • 63
  • 1
  • 6

0 Answers0