[Interest] QML: Wrapping an item from outside

Jason H jhihn at gmx.com
Fri Sep 28 19:27:04 CEST 2018


I have PrettyContainer.qml

I have an item (Item) I want to put into (on top of) PrettyContainer. My PrettyContainer visually wraps the pretty item, like parent of a child widget

MyUI{

    PrettyContainer {

      Item {
        // completely custom 1
      }
    }
    PrettyContainer {

      Item {
        // completely custom 2
      }
    }
}


How can I get My PrettyContainer to take the item as like, say, a contentItem? I thought I did this before, but I can't figure out how I did it, and googling s not returning anything relevant.

Thanks!




More information about the Interest mailing list