[solved] Making a QML file fill a QDeclarativeView

  • 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?

  • @

  • Works perfectly, thank you.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.