[Interest] Modify only some properties of current Qt Quick Controls style?

Elvis Stansvik elvstone at gmail.com
Sun Mar 13 13:32:05 CET 2016


Hi all,

I'd like to use the "Flat" Qt Quick Controls style, but modify some colors.

I know I can modify the style for e.g. a Button like this:

    Button {
        text: 'Some Button'
        style: ButtonStyle {
            background: Rectangle {
                border.color: "#fe7333"
            }
        }
    }

But that forces me to redefine the entire background component,
thereby losing all of the other styling.

How do I adjust only single properties, while inheriting the rest from
the "Flat" style?

Cheers,
Elvis



More information about the Interest mailing list