Inheriting all behaviors when customizing a QML component
-
I'd like to do some mild customization of a button, specifically to change its edges. However, when I start to customize it using
background: Rectangle{}
, the customization clobbers all the basic style settings. Things like button and text color when pressed, when latched, etc...Is there a way to effectively subclass, so I'm changing only the settings I want and keeping the others?
-
I'd like to do some mild customization of a button, specifically to change its edges. However, when I start to customize it using
background: Rectangle{}
, the customization clobbers all the basic style settings. Things like button and text color when pressed, when latched, etc...Is there a way to effectively subclass, so I'm changing only the settings I want and keeping the others?
@Kenz-Dale Can you try to add z value to background: Rectangle{} and put it at the lower layer?
-
@Kenz-Dale Can you try to add z value to background: Rectangle{} and put it at the lower layer?