Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. background colo
    Log in to post

    • Change background color of side and topbar of application
      General and Desktop • background colo guistyle • • TMJJ001  

      4
      0
      Votes
      4
      Posts
      578
      Views

      Hi I assume its all in a layout. Layouts have a default border/margin that you might want to change to zero and see
    • UNSOLVED QTabeWidget SelectRows keep background color for some columns on selection?
      General and Desktop • qtablewidget background colo selectrows • • qDebug  

      2
      0
      Votes
      2
      Posts
      812
      Views

      Hi, You'll likely have to implement a custom QStyledItemDelegate and do the painting yourself to match what you want.
    • SOLVED QlineEdit in focus
      General and Desktop • focus qlinedit background colo • • gabor53  

      8
      0
      Votes
      8
      Posts
      5113
      Views

      Thank you.
    • QML: Change ToolBar color / one style property only
      QML and Qt Quick • qml style toolbar background colo • • Thomas  

      5
      0
      Votes
      5
      Posts
      5635
      Views

      I have a similar problem too. I want to change the font size and I get a fallback base style. I've already reported a bug against Qt. Maybe we could find another workaround in the meantime. All the android styling seems done by the AndroidStyle singleton object coming from QtQuick.Controls.Styles.Android 1.0 module. They do, for example Style { readonly property Button control: __control property Component panel: Item { id: panel readonly property var styleDef: control.checkable ? AndroidStyle.styleDef.buttonStyleToggle : AndroidStyle.styleDef.buttonStyle // some more code } see ButtonStyle.qml But, if we look further, styleDef seems specific to the Android drawables, see this commit And the Android Button.qml seems to use something like this for setting the style style: Settings.styleComponent(Settings.style, "ButtonStyle.qml", button) But I don't know where the settings come from See Button.qml Do you have any idea what to do with it? I don't see any other option that copying the Android Styles tree and adapting it to our needs. But it's awful.