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. [Solved] ColumnLayout - bottom to top?
Forum Updated to NodeBB v4.3 + New Features

[Solved] ColumnLayout - bottom to top?

Scheduled Pinned Locked Moved QML and Qt Quick
8 Posts 2 Posters 3.9k 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.
  • K Offline
    K Offline
    kaivolde
    wrote on last edited by
    #1

    Hi folks,

    is there a way to switch a ColumnLayout to BottomToTop-mode?

    Problem: All layouting is done top to bottom but I need it bottom to top.

    I found something like that in the ListView-class. Here it is called verticalLayoutDirection.
    How can I achieve this effect for the ColumnLayout?

    Thanks in advance.

    Best regards
    Kai

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dasRicardo
      wrote on last edited by
      #2

      Hmm maybe "this":http://qt-project.org/doc/qt-5/qml-qtquick-layouts-columnlayout.html

      **Sorry for my english :)

      PLEASE ADD [SOLVED] TO YOUR THREAD TITLE IF IT'S SOLVED.**

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

        Hmm, I don't see a solution in your answer. I want to use a ColumnLayout
        but instead of ordering the items

        1
        2
        3

        I want this ordering

        3
        2
        1

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dasRicardo
          wrote on last edited by
          #4

          I know what you want and in RowLayout it works and i hoped it would do the same for ColumnLayout.
          OK, so simply added in the order you wish. If you want to have last item on top add the last item first :)

          **Sorry for my english :)

          PLEASE ADD [SOLVED] TO YOUR THREAD TITLE IF IT'S SOLVED.**

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kaivolde
            wrote on last edited by
            #5

            Ok,

            but the items will always "stick" on the top, what is correct for a top-down layout.

            But for a bottom-top layout the items should "stick" at the bottom.

            1 Reply Last reply
            0
            • D Offline
              D Offline
              dasRicardo
              wrote on last edited by
              #6

              OK, so use anchors and everything is fine. Stick the ColumnLayout to the bottom of it's parent.

              **Sorry for my english :)

              PLEASE ADD [SOLVED] TO YOUR THREAD TITLE IF IT'S SOLVED.**

              1 Reply Last reply
              0
              • D Offline
                D Offline
                dasRicardo
                wrote on last edited by
                #7

                Add [SOLVED] to your thread title.

                **Sorry for my english :)

                PLEASE ADD [SOLVED] TO YOUR THREAD TITLE IF IT'S SOLVED.**

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  kaivolde
                  wrote on last edited by
                  #8

                  Ok, I thought (or hoped) to find an easier solution like setting a flag or setting an option or something like this.....

                  If you have both use-cases:

                  • items pointing from north to south and
                  • items pointing from south to north
                    you have to handle both cases very different, what is not so elegant.

                  And for the horizontal case I think there is a better solution for this (LayoutMirroring?!)

                  But nevertheless thank you very much. I mark the thread solved.

                  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