Help with Resizable Columns in TableView
-
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!
-
I think this repository can help you.
https://github.com/tlaemmlein/TableViewQtQuick2Examples