April 14, 2011

steve steve
Lab Rat
1 posts

QTabBar background and QTabWidgets corner widget

 

Hi,
I’m trying to style the background of the QTabBar for my QTabWidget

  1. QTabBar{background-color:white;}

This works fine however the background of the QTabWidgets cornerwidget is not affected.

image showing problem

This image shows a QTabBar I’ve styled to have a white background, and a QLabel set as the corner widget styled with a blue background.

The QTabBar is shrinking to fit the corner widget which makes sense, however I have no idea how to set the background that appears above the label. For example, trying to set a background to QTabWidget::right-corner does not work.

Any ideas?

0 replies

 
  ‹‹ Display "Error" in QLineEdit      Catching system shutdown ››

You must log in to post a reply. Not a member yet? Register here!