Important: Please read the Qt Code of Conduct -

QTabBar background and QTabWidgets corner widget

  • Hi,
    I'm trying to style the background of the QTabBar for my QTabWidget
    This works fine however the background of the QTabWidgets cornerwidget is not affected.

    ! 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?

Log in to reply