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. refresh data in QTableView(QAbstractItemView)
Qt 6.11 is out! See what's new in the release blog

refresh data in QTableView(QAbstractItemView)

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 870 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.
  • S Offline
    S Offline
    ShinSat
    wrote on last edited by ShinSat
    #1

    Hi,

    I have a quick question about QAbstractItemModel.dataChanged signal.
    Does it update/refresh the view without touching the view such as selecting a cell and resizing the view?
    I want to pragmatically update my view in real time with the signal but it's not working.
    My view is only updated when I touch the view(eg.resizing).

    Thanks,
    Sat

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      if the model and the view are implemented correctly then yes, everything works out of the box, no need to do anything manual. QAbstractItemView::setModel will take care of putting the plumbing in place

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      S 1 Reply Last reply
      1
      • VRoninV VRonin

        if the model and the view are implemented correctly then yes, everything works out of the box, no need to do anything manual. QAbstractItemView::setModel will take care of putting the plumbing in place

        S Offline
        S Offline
        ShinSat
        wrote on last edited by
        #3

        @VRonin Thanks for confirmation!

        Sat

        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