qt - how to change background color for qtabbar empty space pyqt -
i need change background color empty space of qtabbar in image below, can use style sheet change tabbar change tabs not empty space next tabs (red bordered area)
as far know can make either via:
tabwidget->setstylesheet("qtabbar { background-color: red; }"); tabwidget->setdocumentmode(true);
but doesn't good.
or via:
tabwidget->setautofillbackground(true); qpalette pal = tabwidget->palette(); pal.setcolor(qpalette::window, qt::red); tabwidget->setpalette(pal);
or create qwidget background , insert qtabwidget on top of it.
Comments
Post a Comment