FelixB
19th July 2011, 11:03
Hi,
now I want to customize the TabBars when QDockWidgets are tabbed. I can change the tabs, but I can't access the tab-bar and the pane. See the desired result in attached image. I want to add a background color gradient and a border around the pane and I want to move the tabs by 3 px to the right.
/* Tab */
QTabWidget::pane /* this does not work with tabbed QDockWidgets! */
{
margin-top:-26Px;
background-color:red;
border:1px solid #959595;
padding-top:2px;
border-radius: 2px;
}
QTabWidget::tab-bar /* this does not work with tabbed QDockWidgets! */
{
border:none;
left:3px;
}
is there any special way to access tabbars/pane of tabbed qdockwidgets?
thanks!
Felix
now I want to customize the TabBars when QDockWidgets are tabbed. I can change the tabs, but I can't access the tab-bar and the pane. See the desired result in attached image. I want to add a background color gradient and a border around the pane and I want to move the tabs by 3 px to the right.
/* Tab */
QTabWidget::pane /* this does not work with tabbed QDockWidgets! */
{
margin-top:-26Px;
background-color:red;
border:1px solid #959595;
padding-top:2px;
border-radius: 2px;
}
QTabWidget::tab-bar /* this does not work with tabbed QDockWidgets! */
{
border:none;
left:3px;
}
is there any special way to access tabbars/pane of tabbed qdockwidgets?
thanks!
Felix