Non-resizable QQuickView window
-
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.
-
Hi,
If you want to get rid of resize capabilities for you window (I mean so that user will not be able to resize the window) just make it frameless. Add the following line:
@logView->setFlags(Qt::FramelessWindowHint | Qt::Tool);@
-
Or you could set the minimum and maximum size to some fixed size.