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. Layouts in Qt Creator

Layouts in Qt Creator

Scheduled Pinned Locked Moved Unsolved General and Desktop
14 Posts 4 Posters 1.3k 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.
  • Pl45m4P Pl45m4

    @SPlatten said in Layouts in Qt Creator:

    because the WYSIWYG editor is so bad

    It's actually not that bad. It requires a steady hand and some patience to move the widgets where they should go.
    You can fill every row / column of your gridLayout by using the design mode.

    SPlattenS Offline
    SPlattenS Offline
    SPlatten
    wrote on last edited by
    #4

    @Pl45m4 , its no-where near as good as it could be, I'm no fan of Microsoft but Microsofts Visual Studio was considerably easier to use and get better results from than Qt Creator and that's going back to the 1980s.

    Kind Regards,
    Sy

    O 1 Reply Last reply
    0
    • SPlattenS SPlatten

      @Pl45m4 , its no-where near as good as it could be, I'm no fan of Microsoft but Microsofts Visual Studio was considerably easier to use and get better results from than Qt Creator and that's going back to the 1980s.

      O Offline
      O Offline
      ollarch
      wrote on last edited by
      #5

      @SPlatten said in Layouts in Qt Creator:

      @Pl45m4 , its no-where near as good as it could be, I'm no fan of Microsoft but Microsofts Visual Studio was considerably easier to use and get better results from than Qt Creator and that's going back to the 1980s.

      I think that you are confusing Qt Creator with Qt Designer. Qt Creator also uses Designer embedded.
      Qt Designer only let's you design Ui files. Qt Creator is an IDE.
      Of course you can use Visual Studio for developing and Qt Designer to design Ui files (as I do).

      SPlattenS 2 Replies Last reply
      2
      • O ollarch

        @SPlatten said in Layouts in Qt Creator:

        @Pl45m4 , its no-where near as good as it could be, I'm no fan of Microsoft but Microsofts Visual Studio was considerably easier to use and get better results from than Qt Creator and that's going back to the 1980s.

        I think that you are confusing Qt Creator with Qt Designer. Qt Creator also uses Designer embedded.
        Qt Designer only let's you design Ui files. Qt Creator is an IDE.
        Of course you can use Visual Studio for developing and Qt Designer to design Ui files (as I do).

        SPlattenS Offline
        SPlattenS Offline
        SPlatten
        wrote on last edited by SPlatten
        #6

        @ollarch , yes, you are correct. How do you use Visual Studio with the Qt palette of tools ?

        I have Visual Studio 2019.

        Kind Regards,
        Sy

        O 1 Reply Last reply
        0
        • O ollarch

          @SPlatten said in Layouts in Qt Creator:

          @Pl45m4 , its no-where near as good as it could be, I'm no fan of Microsoft but Microsofts Visual Studio was considerably easier to use and get better results from than Qt Creator and that's going back to the 1980s.

          I think that you are confusing Qt Creator with Qt Designer. Qt Creator also uses Designer embedded.
          Qt Designer only let's you design Ui files. Qt Creator is an IDE.
          Of course you can use Visual Studio for developing and Qt Designer to design Ui files (as I do).

          SPlattenS Offline
          SPlattenS Offline
          SPlatten
          wrote on last edited by SPlatten
          #7

          @ollarch , here is the form I'm trying to get right in designer:
          Untitled.png
          What I would like to do is get all the labels on the left formatted to the same width and right aligned.

          Then have the figures that in the screenshot read:

          1832 of 46783
          

          Formatted so they are all left aligned to the Blocks label without all the whitespace.

          I would also like the Abort pushbutton resized and aligned to the bottom right of the form.

          Finally I would like the form height to have the same padding from the bottom of the Abort button as the border padding to the left and right.

          I've spent a long time trying and failing to resolve this.

          Kind Regards,
          Sy

          jsulmJ 1 Reply Last reply
          0
          • SPlattenS SPlatten

            @ollarch , here is the form I'm trying to get right in designer:
            Untitled.png
            What I would like to do is get all the labels on the left formatted to the same width and right aligned.

            Then have the figures that in the screenshot read:

            1832 of 46783
            

            Formatted so they are all left aligned to the Blocks label without all the whitespace.

            I would also like the Abort pushbutton resized and aligned to the bottom right of the form.

            Finally I would like the form height to have the same padding from the bottom of the Abort button as the border padding to the left and right.

            I've spent a long time trying and failing to resolve this.

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

            @SPlatten said in Layouts in Qt Creator:

            Formatted so they are all left aligned to the Blocks label without all the whitespace

            Then add a Horizontal Spacer at the right side of that line...

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

            SPlattenS 1 Reply Last reply
            4
            • jsulmJ jsulm

              @SPlatten said in Layouts in Qt Creator:

              Formatted so they are all left aligned to the Blocks label without all the whitespace

              Then add a Horizontal Spacer at the right side of that line...

              SPlattenS Offline
              SPlattenS Offline
              SPlatten
              wrote on last edited by SPlatten
              #9

              @jsulm , easier said than done, how? I've dragged it onto the form an it appears below the row I want.

              [Edit] Done it, dragged and dropped directly onto the data where I want it.

              Kind Regards,
              Sy

              O 1 Reply Last reply
              0
              • SPlattenS SPlatten

                @ollarch , yes, you are correct. How do you use Visual Studio with the Qt palette of tools ?

                I have Visual Studio 2019.

                O Offline
                O Offline
                ollarch
                wrote on last edited by
                #10

                @SPlatten Using Qt Visual Studio Tools on Visual Studio 2015.

                1 Reply Last reply
                0
                • SPlattenS SPlatten

                  @jsulm , easier said than done, how? I've dragged it onto the form an it appears below the row I want.

                  [Edit] Done it, dragged and dropped directly onto the data where I want it.

                  O Offline
                  O Offline
                  ollarch
                  wrote on last edited by
                  #11

                  @SPlatten Just take some time playing with Designer and see how it works.

                  SPlattenS 1 Reply Last reply
                  0
                  • O ollarch

                    @SPlatten Just take some time playing with Designer and see how it works.

                    SPlattenS Offline
                    SPlattenS Offline
                    SPlatten
                    wrote on last edited by
                    #12

                    @ollarch , I'm getting so frustrated with it, its not WYSIWYG at all, I've just formatted it and was happy with the design, built project and the end result is nothing like it appears in the WYSIWYG editor.

                    Kind Regards,
                    Sy

                    Pl45m4P 1 Reply Last reply
                    0
                    • SPlattenS SPlatten

                      @ollarch , I'm getting so frustrated with it, its not WYSIWYG at all, I've just formatted it and was happy with the design, built project and the end result is nothing like it appears in the WYSIWYG editor.

                      Pl45m4P Offline
                      Pl45m4P Offline
                      Pl45m4
                      wrote on last edited by Pl45m4
                      #13

                      @SPlatten

                      Because the layouts apply after building (and displaying) your widget. So there might be some rearrangement.
                      The WYSIWYG editor shows how it could look like.


                      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

                      ~E. W. Dijkstra

                      SPlattenS 1 Reply Last reply
                      0
                      • Pl45m4P Pl45m4

                        @SPlatten

                        Because the layouts apply after building (and displaying) your widget. So there might be some rearrangement.
                        The WYSIWYG editor shows how it could look like.

                        SPlattenS Offline
                        SPlattenS Offline
                        SPlatten
                        wrote on last edited by
                        #14

                        @Pl45m4 , then perhaps it could be WYSCBWYG :)

                        Kind Regards,
                        Sy

                        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