Displaying LCD Widget of Qt in QML
-
Hi everybody, if i want to integrate QWidget (for use of Qlcdnumber) in QML (Qt Quick 2.0) , what should I do?
i want to show LCD numbers manner in qt quick, but i was confused for this! -
Hi,
AFAIK you can't integrate Qt Widgets in QML. But you can make them reside side by side using QQuickWidget.
Another simple way would be to use LCD fonts like "this":http://www.dafont.com/theme.php?cat=302 one. -
thanks for replying, i used it, but i had problems with it and QLCDnumber has features that can solve my need.
-
QQuickWidget is a convenience wrapper for QQuickWindow which will automatically load and display a QML scene when given the URL of the main source file (qt help). it can't solve my problem.
-
Since you can't use Qt Widgets in QML, what i meant earlier was you can load the Qt widgets normally and the QML using QQuickWidgets on the same form layout.