QQuickView
官方描述:
The QQuickView class provides a window for displaying a Qt Quick user interface.
This is a convenience subclass of QQuickWindow which will automatically load and display a QML scene when given the URL of the main source file. Alternatively, you can instantiate your own objects using QQmlComponent and place them in a manually setup QQuickWindow.
默认的qquickview产生的窗口是这样的:
所以就需要我们设置点什么了。
但是突然发现,怎么折腾没啥用。
后来,索性设置为dialog吧!
但是单词的dialog还是有问题,会出现一个万恶的?(帮助)按钮。
设置flags
设置Dialog
Qt::Dialog:
Indicates that the widget is a window that should be decorated as a dialog (i.e., typically no maximize or minimize buttons in the title bar). This is the default type for QDialog. If you want to use it as a modal dial