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. Moving all design elements down by a specified amount
QtWS25 Last Chance

Moving all design elements down by a specified amount

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 5 Posters 460 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.
  • Dummie1138D Offline
    Dummie1138D Offline
    Dummie1138
    wrote on last edited by
    #1

    Hi. I have several elements on a ui file that I would like to lower by 20px. They all have different ui values. Is there a way I can lower them all by 20px, as a group? I know I can move these elements individually but I would like to know if there's a faster way of doing it. Thanks beforehand for all answers and please let me know if more info is required.

    JonBJ 1 Reply Last reply
    0
    • Dummie1138D Dummie1138

      Hi. I have several elements on a ui file that I would like to lower by 20px. They all have different ui values. Is there a way I can lower them all by 20px, as a group? I know I can move these elements individually but I would like to know if there's a faster way of doing it. Thanks beforehand for all answers and please let me know if more info is required.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Dummie1138
      Can/can't you Ctrl+click or rectangle-select for multiple ones?

      Dummie1138D 1 Reply Last reply
      0
      • JonBJ JonB

        @Dummie1138
        Can/can't you Ctrl+click or rectangle-select for multiple ones?

        Dummie1138D Offline
        Dummie1138D Offline
        Dummie1138
        wrote on last edited by
        #3

        @JonB I forgot to specify why I'm trying to avoid it, thanks for reminding me.

        I can, but would very much prefer it to be exactly 20px of change instead of "around 20px". If there is no easy way of changing property values of multiple objects, I will resort to this method.

        JonBJ 1 Reply Last reply
        0
        • Dummie1138D Dummie1138

          @JonB I forgot to specify why I'm trying to avoid it, thanks for reminding me.

          I can, but would very much prefer it to be exactly 20px of change instead of "around 20px". If there is no easy way of changing property values of multiple objects, I will resort to this method.

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @Dummie1138
          If I were you and it is not too many items, I would edit the changes directly into the .ui file then! :)

          1 Reply Last reply
          0
          • mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi
            Select them (using ctrl) and use
            ctrl+alt and arrow down key to move 1 pixel. Repeat until 20. :)
            It only takes a moment to press 20 times.

            1 Reply Last reply
            2
            • C Offline
              C Offline
              ChrisW67
              wrote on last edited by
              #6

              Surely none of this manual finessing of positions in Designer will survive the first time the layout manager resizes and positions its managed widgets.

              1 Reply Last reply
              1
              • JKSHJ Offline
                JKSHJ Offline
                JKSH
                Moderators
                wrote on last edited by
                #7

                To double-check, first:

                1. *.ui file or *.ui.qml file?
                2. What layouts are you already using (if any)?
                3. What padding/margin/spacing values have you already applied (if any)?

                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                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