On 07/22/2010 06:46 PM, [email protected] wrote: >> When I run my project from qmlviewer though, there's no way (I think) >> to display that same QCalendarWidget, >> > Yes, you'd have to make it a plugin instead of declaring it in your app. > I agree, but I thought that a plugin would only make the C++ objects visible to the QML, (i.e. when run from qmlviewer). My concern/question was specifically: How to *display* a regular Qt (i.e. non-qml) widget (namely, my QCalendarWidget) inside my QML components: I originally though that this wasn't possible...
However, now that I've been looking more into this, I realize that http://doc.qt.nokia.com/main-snapshot/qml-integration.html#loading-qgraphicswidget-objects-in-qml tells us how to include a QGraphicsWidget inside a QML component. So I guess that I could embed my QCalendarWidget inside a QGraphicsWidget and add the QGraphicsWidget to QML. Is that what you would recommand ? Thanks for the suggestions. Best, Sacha _______________________________________________ Qt-qml mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-qml
