Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    [SOLVED] QGridLayout cell ordering?

    General and Desktop
    2
    3
    612
    Loading More Posts
    • 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.
    • P
      pmh4514 last edited by

      Hello

      Is it possible to make QGridLayout see the following cell order as I insert widgets into it? (start top right, move left, step down one, move back right, step down one, move back left, etc.)

      // 4 3 2 1 0
      // 5 6 7 8 9
      // 14 13 12 11 10
      // 15 16 17 18 19
      // 24 23 22 21 20

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        It's up to you to put your widgets in that order, or you could implement your own grid layout that does that.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • P
          pmh4514 last edited by

          Ok I thought so. <edit to remove new question>

          1 Reply Last reply Reply Quote 0
          • First post
            Last post