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. Footer for section in TableView
Forum Updated to NodeBB v4.3 + New Features

Footer for section in TableView

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 871 Views 1 Watching
  • 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.
  • GoodGuyG Offline
    GoodGuyG Offline
    GoodGuy
    wrote on last edited by GoodGuy
    #1

    Hello,

    Is there any way to create footer for section or any other way to get additional row on the end of section?

    I have a created section for TableView and i want to have additional button to add /remove data on the end of every section.

    Edit: I'm using TableView form QtQuick.Control 1.4

    JonBJ 1 Reply Last reply
    0
    • GoodGuyG GoodGuy

      Hello,

      Is there any way to create footer for section or any other way to get additional row on the end of section?

      I have a created section for TableView and i want to have additional button to add /remove data on the end of every section.

      Edit: I'm using TableView form QtQuick.Control 1.4

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @goodguy
      I don't do QML. But two weeks ago I asked for footers in widgets QTableView (https://forum.qt.io/topic/104869/any-way-a-database-model-qtableview-could-have-an-extra-total-row), and there aren't any.

      I don't know if that indicates the same might be true of a QML TableView. https://stackoverflow.com/questions/8089522/qml-listview-header-and-footer-items talks about footers for QML ListView, I don't know if that applies to TableView. For Qt 5.9 I see https://doc-snapshots.qt.io/qt5-5.9/qml-qtquick-controls-tableview.html#contentFooter-prop, does that apply?

      1 Reply Last reply
      1
      • GoodGuyG Offline
        GoodGuyG Offline
        GoodGuy
        wrote on last edited by
        #3

        Hi @JonB

        Thank you for answer. Unfortunetly ContentFooter property is only for whole TableView .

        I could solve this by declarate delegate as TableView / ListView but i feel like it will complicate my model, so i want to avoid this if it's possible.

        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