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. My Array doesnt follow my window
Forum Updated to NodeBB v4.3 + New Features

My Array doesnt follow my window

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

    Hello, i am currently working on an UI and im having a hard time with layouts (as you can see on the screen) lat.JPG

    i want my array to follow the size of the window when i stretch it, so i dont get these blank spaces as you can see on the right of the arrays and a little on the bottom. I am already using layouts for this : my QTableView is resizing with the windows, but not my array in it.

    How can i do this?

    thanks in advance..

    jsulmJ 1 Reply Last reply
    0
    • A aftalib

      Hello, i am currently working on an UI and im having a hard time with layouts (as you can see on the screen) lat.JPG

      i want my array to follow the size of the window when i stretch it, so i dont get these blank spaces as you can see on the right of the arrays and a little on the bottom. I am already using layouts for this : my QTableView is resizing with the windows, but not my array in it.

      How can i do this?

      thanks in advance..

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

      @aftalib Sorry, it is not clear what you mean. What array? Can you also draw what you want to get?

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

      A 1 Reply Last reply
      0
      • jsulmJ jsulm

        @aftalib Sorry, it is not clear what you mean. What array? Can you also draw what you want to get?

        A Offline
        A Offline
        aftalib
        wrote on last edited by
        #3

        @jsulm i would like my columns with the numbers in it to follow my QTableView when i increase the size of my window, like this : lay2.JPG

        sorry english is not my native language, array might not be the right word.

        jsulmJ 1 Reply Last reply
        0
        • A aftalib

          @jsulm i would like my columns with the numbers in it to follow my QTableView when i increase the size of my window, like this : lay2.JPG

          sorry english is not my native language, array might not be the right word.

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

          @aftalib This is not related to layouts.
          See
          "By default, the cells in a table do not expand to fill the available space." in https://doc.qt.io/qt-5/qtableview.html

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

          A 1 Reply Last reply
          2
          • jsulmJ jsulm

            @aftalib This is not related to layouts.
            See
            "By default, the cells in a table do not expand to fill the available space." in https://doc.qt.io/qt-5/qtableview.html

            A Offline
            A Offline
            aftalib
            wrote on last edited by
            #5

            @jsulm Oh my god, thank you so much. i had no idea that was related to headers, i thought i was a layout displaying problem. thank you.

            1 Reply Last reply
            1

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved