[Qt-qml] a little question/suggestion about "qml widgets"

Alain FLORET afloret at corys.fr
Tue May 4 09:22:06 CEST 2010


Hi,

Have you correctly defined MinimumSize and MaximumSize, because in some 
case sizeHint doesn't work correctly without this definition.

Alain.

FLORET Alain
Developer
CORYS TESS
E-mail : afloret at corys.fr
--


Le 01/05/2010 15:39, Gianni Valdambrini a écrit :
> Hi,
> I'm writing a demo application using both standard C++ widgets and Qml
> widgets (through QDeclarativeView). Standard widgets and qml widgets are
> put in a gridlayout of a standard c++ widget.
> My Qml widgets have the item "Rectangle" as the root item so they have
> width and height properties. However, I had to subclass the
> QDeclarativeView to redefine the sizeHint and the minimumSizeHint
> methods, otherwise the gridlayout doesn't work properly.
> Is there another convenient way to achieve the same result? Can the
> QDeclarativeView do this automatically?
>
> Thanks,
> Gianni
> _______________________________________________
> Qt-qml mailing list
> Qt-qml at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-qml
>
>
>    



More information about the Qt-qml mailing list