Does Qt Qml Have QMdiArea?

坚强是说给别人听的谎言 提交于 2020-02-05 04:04:36

问题


Does Qml have QMdiArea and QMdiSubWindow? If so can you show me a little example? I have a cool idea for a program design that I would like to create.


回答1:


QML does not have something like QMdiArea. But you can place your qml file in a QMdiArea widget. It's enought to set a QDeclarativeView as viewport widget of the QMdiArea or by putting the QDeclarativeView inside QMdiArea(It's just a QWidget subclass like any other).



来源:https://stackoverflow.com/questions/22682057/does-qt-qml-have-qmdiarea

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!