Hi Mathias!

On Thu, Jan 13, 2011 at 2:38 PM,  <mathias.malmqv...@nokia.com> wrote:
> J-P and Marco (and anyone else who cares about implicit sizing of Items),
> what do you think about Marin's suggested fix for QTBUG-14957?
>
> Basically Martin wants to support implicitWidth and implicitHeight properties
> on Item, but they would be read-only so we would still need to have an
> ImplicitSizeItem base element for our components that really only overrides
> the read-only Item properties and make them writable.
>
> I can see why Martin doesn't want to make these properties writable (because
> they shouldn't be), but if we still need our own ImplicitSizeItem and all it 
> does
> is make these properties writable, then it doesn't really improve much on what
> we already have.
>
> What do you think?
> Could we have implicitWidth and implicitHeight properties read-only but also
> e.g. a function on Item for binding an expression to them? Would that be a
> balanced compromise?

These days I had a chat with some co-workers saying that as the time
go I fell more and more that we'll need *some kind* of size hint (it
doesn't necessary need to be exactly the one that we have on
QWidget/QGraphicsWidget).

So I really support the idea of solving this once for all in QML
itself. Making the properties read-only doesn't improve much our use
case as we still would need our ImplicitSizeItem as you said.

Enabling the use of a function for binding an expression to them
sounds like a little bit "hackish" from my "API point of view". It
should either support writing on it or not at all, otherwise it just
makes the API uglier and hard to understand when looking from outside.

Cheers,

-- 
-------------------------------------------------------
Artur Duque de Souza
openBossa
INdT - Instituto Nokia de Tecnologia
-------------------------------------------------------
Blog: http://blog.morpheuz.cc
PGP: 0xDBEEAAC3 @ wwwkeys.pgp.net
-------------------------------------------------------
_______________________________________________
Qt-components mailing list
Qt-components@qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-components

Reply via email to