[solved] Making a QML file fill a QDeclarativeView
General and Desktop
3
Posts
2
Posters
4.1k
Views
1
Watching
-
I am trying to find out how to make the contents of a QML file (currently a Rectangle with a gradient for testing purposes) fill the QDeclarativeView that contains it in the MainWindow of my application, however I cannot seem to figure out how to do this.
I can get the QML file to show in the QDeclarativeView no problem, but if I resize the window the rectangle does not resize with it. Is there any way of achieving this even if it means a different approach?