Re: [Interest] QML: Wrapping an item from outside

2018-10-01 Thread Jérôme Godbout
ot; > } > } > > In this example, I want the MyAutoSizeRectangle instance to apply > whatever. I am thinking something maybe like a visual item model of size 1? > But then I have to deal with the view management. > > > > > *Sent:* Friday, September 28, 2018 at 2:21

Re: [Interest] QML: Wrapping an item from outside

2018-10-01 Thread Jason H
ot; To: furkanuzu...@gmail.com Cc: "Qt Interest" , "Jason H" Subject: Re: [Interest] QML: Wrapping an item from outside Like Furkan said, use the default property alias to chidlren:   MyUI {   default property alias childs: container_.childrens  // you can also target .dat

Re: [Interest] QML: Wrapping an item from outside

2018-09-28 Thread Jérôme Godbout
Like Furkan said, use the default property alias to chidlren: MyUI { default property alias childs: container_.childrens // you can also target .data to have non Item objects PrettyContainer { id: container_ } } On Fri, 28 Sep 2018 at 13:31, Furkan Üzümcü wrote: > I think you are looking

Re: [Interest] QML: Wrapping an item from outside

2018-09-28 Thread Furkan Üzümcü
I think you are looking for the `default` property. Check out this guide for more information: https://doc.qt.io/qt-5/qtqml-referenceexamples-default-example.html Regards, Furkan Üzümcü On Sep 28, 2018, 13:27 -0400, Jason H , wrote: > I have PrettyContainer.qml > > I have an item (Item) I want

[Interest] QML: Wrapping an item from outside

2018-09-28 Thread Jason H
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 {