Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Android: QToolBar doesn't forward stylesheet to children
Forum Updated to NodeBB v4.3 + New Features

Android: QToolBar doesn't forward stylesheet to children

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
androidstylesheet
1 Posts 1 Posters 554 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gloweye
    wrote on last edited by
    #1

    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 ?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved