[Qt-qml] How to expose widget to QML
martin.jones at nokia.com
martin.jones at nokia.com
Wed Dec 1 05:13:13 CET 2010
You may be able to do this via QGraphicsProxyWidget, but as the documentation states: "This class is provided for convenience when bridging QWidgets and QGraphicsItems, it should not be used for high-performance scenarios". If you are able then it is better to port the widget's functionality to QDeclarativeItem.
BR,
Martin.
From: qt-qml-bounces at trolltech.com [mailto:qt-qml-bounces at trolltech.com] On Behalf Of ext vuleetu
Sent: Wednesday, 1 December 2010 2:03 PM
To: qt-qml at trolltech.com
Subject: [Qt-qml] How to expose widget to QML
Hi,
I can create custom extension which inherit QDeclarativeItem and it works. But i want to using existing widget like QLabel in Qt exposed to qml? Does anyone know how to do this?
Best regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20101201/950645a6/attachment.html
More information about the Qt-qml
mailing list