简体   繁体   中英

How to embedd a Qt widget in QML?

Suppose I write the code for a pushbutton widget in Qt (C++).
Is it possible to display that pushbutton in QML window with Qt 4.8?

What do I need to read for that?

http://qt-project.org/doc/qt-4.8/qgraphicsproxywidget.html

http://qt-project.org/wiki/QtDesktopComponents

But the whole idea of QML is to create your own custom buttons with it, a whole custom QML GUI.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM