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. For QTableWidget, what's the difference of cellChanged and itemChanged?
Forum Updated to NodeBB v4.3 + New Features

For QTableWidget, what's the difference of cellChanged and itemChanged?

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 1.8k 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.
  • jronaldJ Offline
    jronaldJ Offline
    jronald
    wrote on last edited by jronald
    #1

    Doc for the 2 signals

    • cellChanged
      This signal is emitted whenever the data of the item in the cell specified by row and column has changed.
      This function was introduced in Qt 4.1.
    • itemChanged
      This signal is emitted whenever the data of item has changed.

    It seems that they are same, except itemChanged is newer than cellChanged and more convenient. Right?

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

      Hi,

      cellChanged is for all QAbstractItemView classes, itemChanged is specific to the convenience views (QListWidget, QTableWidget, QTreeWidget) where you use the corresponding item classes to interact with the model.

      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
      • jronaldJ jronald

        Doc for the 2 signals

        • cellChanged
          This signal is emitted whenever the data of the item in the cell specified by row and column has changed.
          This function was introduced in Qt 4.1.
        • itemChanged
          This signal is emitted whenever the data of item has changed.

        It seems that they are same, except itemChanged is newer than cellChanged and more convenient. Right?

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

        @jronald
        QTableView has no cellChanged.

        jronaldJ 1 Reply Last reply
        0
        • JonBJ JonB

          @jronald
          QTableView has no cellChanged.

          jronaldJ Offline
          jronaldJ Offline
          jronald
          wrote on last edited by
          #3

          @JonB said in For QTableView, what's the difference of cellChanged and itemChanged?:

          QTableView has no cellChanged.

          Sorry it should be QTableWidget.

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

            Hi,

            cellChanged is for all QAbstractItemView classes, itemChanged is specific to the convenience views (QListWidget, QTableWidget, QTreeWidget) where you use the corresponding item classes to interact with the model.

            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

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved