Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Freely resizing and moving items in QML window
QtWS25 Last Chance

Freely resizing and moving items in QML window

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 3 Posters 920 Views
  • 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
    milan
    wrote on last edited by
    #1

    Hello, Is there any layout, or method to freely resize items that are fed by C++ model. Also, can the item be freely positioned anywhere in the window? I see that rowlayout, columnlayout, gridlayout items are of same size. In my case, I would like to have layout which does not constrain such size and I can just increase item size at run-time and be able to position such item in window anywhere possible.
    Please help.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      shaan7
      wrote on last edited by
      #2

      See if the items listed here are useful for your case http://doc.qt.io/qt-5/qtquick-positioning-layouts.html

      1 Reply Last reply
      0
      • E Offline
        E Offline
        Eeli K
        wrote on last edited by
        #3

        The core idea of "layout" is to constrain size and position, so you describe a layout which is not a layout. You could for example see if Repeater fits your needs with the delegate doing absolute positioning. That could work if the amount of items is limited and the model can contain the information from which you can calculate the size and position of each item.

        1 Reply Last reply
        0

        • Login

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