How to resize the window of my qml file?

  • I'm building a GUI and I would like to resize the window whenever the user wish to change it. How can I do this? Directly from QT in my qml file or in python?

  • Moderators

    You can change width and height properties of your main window at any time. As to how, it depends on what is your trigger mechanism. Is user clicking some button? Then add size changing code to that button's onClicked slot.

Log in to reply