Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to resize QQuickView?
fant last edited by
I tried to set the size of a QQuickView window in a container widget, but it doesn't resize. I would like to fill complete container widget with QQuickView window, like a foil over a ground.
Also all other tests doesn't work, for example the method setBaseSize() or away over geometry()->setSize().
//the container widget is a graphics view with graphics scene inside
QGraphicsScene *scene = new QGraphicsScene(0, 0, 500, 500, this);
QGraphicsView *view = new QGraphicsView(scene, this);
view.setBackgroundBrush(QBrush(QColor(0, 0, 0, 0)));
//the qquickview instance
QQuickView *qview = new QQuickView;
qview->setColor(QColor(0, 200, 0);
//add qquickview to container