TableView with Controls 2



  • Over the last couple weeks I've been wondering if anyone has built any sort of TableView that's highly customizable, after finding nothing I've decided to build my own.

    QmlGrid is a TableView that is designed in the style of Controls 2, so it can be used to display arbitrary data with arbitrary column and row sizes. Here's my 2 example grids, the bottom one has custom sorting added in
    0_1486764465677_upload-b742a044-7814-4165-b71d-8427d27b0eae

    In this mode the grid has some large default padding and column sizes are determined by the largest value in a column, however if you want to anchor the grid it'll expand to fill the space provided as seen in the following screenshots
    0_1486764726674_upload-91f370a8-bf91-44b5-a881-7849cbd86829
    0_1486764738818_upload-d21487e9-8fbd-4147-a9d6-63c7ad8d408a

    you can see as the window is resized the grid expands to match it.


  • Moderators

    Thank you for sharing!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.