[Solved] Resizing QQuickView or QWindow
I'm having trouble resizing a QQuickView. The functions resize and setGeometry have no effect. Only if I encapsulate the functions between a hide and show it works.
Currently I'm using this piece of code :
setGeometry( ... );
But this also destroys the OpenGL context and that something I don't want.
Does anyone know how to correctly resize a QQuickView or a QWindow?
I discovered that when I maximize the window using system windowmanager, resize doesn't work afterwards. But after if I resize after showMaximized() it works. So my code looks like this :
setGeometry( .. )@
Have you tried "updateGeometry":http://doc.qt.digia.com/qt/qwidget.html#updateGeometry ?
Yes, both resize and setGeometry have no effect.
Sorry, I edited my post. Please read it again.
[quote author="beemaster" date="1351507667"]Have you tried "updateGeometry":http://doc.qt.digia.com/qt/qwidget.html#updateGeometry ?[/quote]
Thanks for the tip, QWindow doesn't have updateGeometry().