Important: Please read the Qt Code of Conduct -

Android: QToolBar doesn't forward stylesheet to children

  • Im building an android app, and at the top the toolbar needs a color. It's got two buttons, a label and two qwidgets on Sizepolicy::Expanding to center the label in the middle.

    On PC, this works as expected and I get the following:

    On Android, I get this:

    My style sheet is the most simple one:
    QToolBar {
    background: red;

    How can I make the child widgets inherit the background color on android ?

Log in to reply