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:
    0_1509707627405_PC.png

    On Android, I get this:
    0_1509707643714_Android.png

    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
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.