[Qt-qml] implicitWidth and implicitHeight in QML

Eduardo Fleury eduardo.fleury at openbossa.org
Wed Jul 28 23:16:36 CEST 2010


Hi there,

Yesterday I opened a task in Jira that was closed today as invalid. While I
understand that, I would like to have one more round of discussion around
that idea. I thought this was the best place for that to happen so more
people can share their opinion.

To understand the context, reading this task is probably a good idea.

http://bugreports.qt.nokia.com/browse/QTBUG-12465

My point is that I understand the following code is valid, regardless of the
class type of A, B and C

Item {

    (...)

    Item {
        id: A
        anchors.centerIn: parent
    }

    Item {
        id: B
        x: 30
        y: 60
    }

    Item {
        id: C
        anchors.left: parent
    }

}

If that's true, it means to me that the "size items have when no one sets
their size" is a concept that is important enough to be first-class.
I mean, for every single item, if they can be instantiated without a given
size, then there must be a way for component developers to specify their
"default size". And to me that should be "implicitWidth" and
"implicitHeight", for the reasons exposed in the link above. Also, I don't
think people, specially designers, should _have_ to use C++ in order to do
that.

What do you guys think?

Best regards,


-- 
Eduardo M. Fleury
OpenBossa - INdT
http://eduardofleury.com/
http://www.openbossa.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100728/1f51f300/attachment.html 


More information about the Qt-qml mailing list