99% of the time, I write code like:

Rectangle {
  width: parent.width   // In the form of P: O.P
}

I'm wondering if QML parser could be enhanced to look for and use the parent's 
width property automatically.

Rectangle {
  width: parent // Expands to width: parent.width  - Assignment of Item to 
double is not valid, so find same property name in parent and use that
}

Similarly:
Rectangle {
  width: parent / 2 // Expands to width: parent.width / 2
}

Is this possible?
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to