[Interest] QML: Wrapping an item from outside

Furkan Üzümcü furkanuzumcu at gmail.com
Fri Sep 28 19:30:19 CEST 2018


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 <jhihn at gmx.com>, wrote:
> 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!
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180928/f9f90b30/attachment.html>


More information about the Interest mailing list