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. [SOLVED]dataChanged
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]dataChanged

Scheduled Pinned Locked Moved General and Desktop
model-view
6 Posts 4 Posters 1.5k Views 3 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.
  • G Offline
    G Offline
    GrahamL
    wrote on last edited by GrahamL
    #1

    Hi
    The signature of the dataChanged signal gives 2 model indexes
    How can I access the entire range of indexes in my slot?
    Any help gratefully accepted

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi,
      what class are you talking about? QAbstractItemModel?

      1 Reply Last reply
      0
      • G Offline
        G Offline
        GrahamL
        wrote on last edited by
        #3

        Hi
        Thanks for your reply. I am using QAbstractTableModel

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

          Hi,

          You have the starting and ending indexes there, you can loop through the rows and columns given by them

          Hope it helps

          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
          1
          • A Offline
            A Offline
            alex_malyu
            wrote on last edited by alex_malyu
            #5

            In other words you receive range: first index row to last index row, first index column to last index column.
            Everything in between changed.

            1 Reply Last reply
            1
            • G Offline
              G Offline
              GrahamL
              wrote on last edited by
              #6

              Thanks
              problem solved!

              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