Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

QML DefaultProperty, possible a bug

$
0
0
According to this [qt-project.org] example: The default property specifies the property to assign to whenever an explicit property is not specified, in the case of the BirthdayParty element the guest property. It is purely a syntactic simplification, the behavior is identical to specifying the property by name, but it can add a more natural feel in many situations. The default property must be either an object or list property. However, in my case behavior is different: for instance, I have GUI elements that are sensitive to an order in which they are instantiated. So if I explicitly fill my default-property list, childs are in front of parent, and in case I declare children with simle syntax – parent item becomes in front. Which actually means that latter way children were instantiated before parent, and former way children were created after parent was. Is that a desired behavior? P.S. Ofc I will fix my GUI any way, it is now in WIP state (parents aren’t set in backend level), that is why I found an issue. So slease dont tell me how I solve this, I only want to know about property behavior.

Viewing all articles
Browse latest Browse all 4972

Trending Articles