On 06/12/2011, at 3:39 AM, ext Jesus Fernandez wrote:

> Hi,
> 
> Is there a way to have a Qml object with a function that doesn't require the 
> object instantiation?
> I want to create a Qml object with a show function to create Object 
> dynamicly. The function behaviour will be like a object factory (Static class 
> function)


If you don't want a custom QML type to be instantiable, you can register it 
using the overloaded version of  qmlRegisterType() that doesn't take any 
arguments

See the discussion at 
http://lists.qt.nokia.com/pipermail/qt-qml/2010-October/001470.html


cheers,

Bea

_______________________________________________
Qt-qml mailing list
Qt-qml@qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to