Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Inheriting all behaviors when customizing a QML component
Forum Updated to NodeBB v4.3 + New Features

Inheriting all behaviors when customizing a QML component

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 249 Views 1 Watching
  • 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.
  • K Offline
    K Offline
    Kenz Dale
    wrote on last edited by
    #1

    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?

    JoeCFDJ 1 Reply Last reply
    0
    • K Kenz Dale

      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?

      JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #2

      @Kenz-Dale Can you try to add z value to background: Rectangle{} and put it at the lower layer?

      K 1 Reply Last reply
      0
      • JoeCFDJ JoeCFD

        @Kenz-Dale Can you try to add z value to background: Rectangle{} and put it at the lower layer?

        K Offline
        K Offline
        Kenz Dale
        wrote on last edited by
        #3

        @JoeCFD I can try, but I don't immediately see what that does here. I want the rectangle to be on top, I just hope not to have all its styles reset when all I want to do is a bit of line art on the border.

        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