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. How to make a whole row in TableView.

How to make a whole row in TableView.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 372 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.
  • K Offline
    K Offline
    Koksharov Oleg
    wrote on last edited by
    #1

    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!

    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