Non-resizable QQuickView window
QML and Qt Quick
3
Posts
3
Posters
4.9k
Views
1
Watching
-
I have a qml file and open its window like this:
@
QQuickView* logView = new QQuickView();
logView->setSource(QUrl::fromLocalFile("saveLog.qml"));
@How can I make that window non-resizable?
"This":http://qt-project.org/doc/qt-5.0/qtquick/qquickview.html#resizeMode-prop tells that it I can have two resize modes:- QQuickView::SizeViewToRootObject
- QQuickView::SizeRootObjectToView
But there is no option for non-resizable windows.
-
Or you could set the minimum and maximum size to some fixed size.