[Solved] Repaint a QML Scene (QQuickView)
-
Hi,
I'm using two widget separated by a splitter. in one widget I've used QQuickView. whenever geometry of QQuickView widget is changed (e.g by changing docwidget position) i want to send it's new geometry to qml by invokemethod. I did it but the problem is that the qml scene will not update itself. Is there any update or repaint method for qml to update itself?
Actually i want to resize embedded QQuickView automatically.
Thanks -
You can use "setResizeMode()":http://qt-project.org/doc/qt-5.0/qtquick/qquickview.html#resizeMode-prop.
You need to resize the widget, not the QML inside - that will be done automartically if you have set up your anchors correctly.
-
Thanks that solved the problem :)
-
I'm glad to hear that. Please mark this thread as solved.