How to resize QQuickView?
-
Hi,
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 insideQGraphicsScene *scene = new QGraphicsScene(0, 0, 500, 500, this);
QGraphicsView *view = new QGraphicsView(scene, this);
view.setBackgroundBrush(QBrush(QColor(0, 0, 0, 0)));
view.setFixedSize(scene->width(), scene->height());//the qquickview instance
QQuickView *qview = new QQuickView;
qview->setColor(QColor(0, 200, 0);
qview->setMinimumSize(QSize(500, 500));
qview->setMaximumSize(QSize(500, 500));//add qquickview to container
view->createWindowContainer(qview, view);
@