Re: [Qt-qml] How to expose widget to QML

2010-11-30 Thread martin.jones
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-boun...@trolltech.com [mailto:qt-qml-boun...@trolltech.com] On 
Behalf Of ext vuleetu
Sent: Wednesday, 1 December 2010 2:03 PM
To: qt-qml@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.
___
Qt-qml mailing list
Qt-qml@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml


Re: [Qt-qml] How to expose widget to QML

2010-11-30 Thread vuleetu
Thanks Martin :)

On Wed, Dec 1, 2010 at 12:13 PM, martin.jo...@nokia.com wrote:

  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-boun...@trolltech.com [mailto:qt-qml-boun...@trolltech.com]
 *On Behalf Of *ext vuleetu
 *Sent:* Wednesday, 1 December 2010 2:03 PM
 *To:* qt-qml@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.

___
Qt-qml mailing list
Qt-qml@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml