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. Help with Resizable Columns in TableView
QtWS25 Last Chance

Help with Resizable Columns in TableView

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 3 Posters 501 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.
  • I Offline
    I Offline
    ImJustAQuestion
    wrote on last edited by
    #1

    I'm relatively new to QML and I'm currently working on a project where I'm facing an issue with TableView that I hope to get some help with.

    In my application, I have implemented a TableView with resizable columns. However, when I try to resize these columns, the entire table shifts, sometimes even moving outside the window's boundaries. My goal is for the table view to always stay anchored within its parent window.

    The Desired Behavior I Want to get When resizing a column is so that the adjacent column will adjust its size accordingly. This adjustment should continue until the adjacent column reaches a set maximum or minimum size, beyond which the resizing action should not have any further effect.
    My Goal is that The table itself should remain within the confines of the window at all times, regardless of the resizing.

    I would greatly appreciate any advice, suggestions, or code examples that could guide me in the right direction. Thank you very much for your time and help!

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AhsanKhan
      wrote on last edited by
      #2

      Just got this post by search.

      I want resizable columns; can I see your code?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AliGh
        wrote on last edited by
        #3

        I think this repository can help you.
        https://github.com/tlaemmlein/TableViewQtQuick2Examples

        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