Hello,

I am beginner to the QML. I have a question on defining properties. I know that 
we can create properties of basic types like:

property double myDoubleProperty

My question is if we can define a property of type a custom element. For 
example, I have a MyPage element defined inside MyPage.qml. Can I define a 
property like:

property MyPage myMyPageProperty

If yes, how can I initalize it? Would this work:

property MyPage myMyPageProperty: MyPage {}

I tried the things I wrote above but they seem to be not working and I couldn't 
find an example which doesn't use basic types.

 
Canol Gokel
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to