Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Non-resizable QQuickView window
khajvah last edited by
I have a qml file and open its window like this:
QQuickView* logView = new QQuickView();
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:
But there is no option for non-resizable windows.
pehcha last edited by
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.