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. Using Rectangles to Position Stuff
Qt 6.11 is out! See what's new in the release blog

Using Rectangles to Position Stuff

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 4 Posters 1.0k Views 2 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.
  • S Offline
    S Offline
    Sajjad Ali
    wrote on last edited by
    #1

    Hello, I use column and row layouts and put rectangles in them. Then I use these rectangles as parents to stuff like buttons, charts, etc.
    My question: Is this the right way? because it is not possible to remove them once I set everything. They will always live there

    c9aaff37-9938-4abe-afa3-d56bdfd405ef-image.png

    jsulmJ 1 Reply Last reply
    0
    • ODБOïO Offline
      ODБOïO Offline
      ODБOï
      wrote on last edited by
      #2

      Hi @Sajjad-Ali its not very clear what you are trying to do, are you trying to dinamically add and delete the small colored rectangles ?

      1 Reply Last reply
      0
      • S Sajjad Ali

        Hello, I use column and row layouts and put rectangles in them. Then I use these rectangles as parents to stuff like buttons, charts, etc.
        My question: Is this the right way? because it is not possible to remove them once I set everything. They will always live there

        c9aaff37-9938-4abe-afa3-d56bdfd405ef-image.png

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Sajjad-Ali said in Using Rectangles to Position Stuff:

        because it is not possible to remove them once I set everything

        You can always remove widgets from layouts, don't know why you say this is not possible

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • P Offline
          P Offline
          Paul Webster
          wrote on last edited by
          #4

          Put your buttons, etc. in a Grid

          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