How to make a whole row in TableView.



  • Hello everybody.
    I have a TableView with four TableViewColumns. I want to group some rows in the Table with one whole on top, like this:
    Header:..............| Number | Color | Type1 | Type2|
    Whole row:.......| My Element 1..............................|
    Simple Row:.....| 1..............| Red...| T1........| T2......|
    Simple Row:.....| 2..............| Red...| T1........| T2......|
    Simple Row:.....| 3..............| Red...| T1........| T2......|
    Whole row:.......| My Element 2..............................|
    Simple Row:.....| 1..............| Red...| T1........| T2......|
    Simple Row:.....| 2..............| Red...| T1........| T2......|
    Simple Row:.....| 3..............| Red...| T1........| T2......|

    Can I make something like this? If i use QObjectList-based model http://doc.qt.io/qt-5/qtquick-modelviewsdata-cppmodels.html for Table filling.

    Thanks for answers!


Log in to reply
 

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