Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Two QTableViews One QStandardItemModel, in which QTableView the data has been changed?
Forum Updated to NodeBB v4.3 + New Features

Two QTableViews One QStandardItemModel, in which QTableView the data has been changed?

Scheduled Pinned Locked Moved General and Desktop
qstandarditemmoqtableview
3 Posts 2 Posters 869 Views 2 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.
  • B Offline
    B Offline
    brianrrichter
    wrote on last edited by
    #1

    Good afternoon folks,

    Let's suppose I have two tableViews with checkable items, both of them use the same QStandardItemModel.

    I need to know in which tableView the item was changed.

    Thanks in advance.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You could subclass QIdentityProxyModel and send that information from the setData function.

      Out of curiosity, why do you need that information for ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • B Offline
        B Offline
        brianrrichter
        wrote on last edited by
        #3

        Thanks for your reply. I will see about QIdentityProxyModel.
        I have two or more multiselect widgets (QTableView with checkable items) where the items checked in one multiselect are removed from the others.

        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