Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to resize the window of my qml file?
Forum Updated to NodeBB v4.3 + New Features

How to resize the window of my qml file?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 293 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Marianagb
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      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.

      (Z(:^

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved