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. How to update a QTableWidget row by row
Forum Updated to NodeBB v4.3 + New Features

How to update a QTableWidget row by row

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.5k 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.
  • G Offline
    G Offline
    gRicky
    wrote on last edited by
    #1

    Hi All,

    Here again with my troubles....

    On my GUI I'm using a QTableWidget where I'm updating the field "row by row". I'd like that the table shows me the new data inserted every time I change the data inside a field but even though the code works the table shows me the new data after that every row have been modified. Does anyone know if there is any "refresh" method to call on the QTableWidget which can solve my issue?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      gRicky
      wrote on last edited by
      #2

      I solved also this problem on my own, I've used the repaint() method of the QTableWidget which I'm using to show the data. Now it seems to work!

      Thank to all for your support.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mlong
        wrote on last edited by
        #3

        Glad you figured it out! Be sure and add [Solved] to your thread title in the initial post. Thanks!

        Software Engineer
        My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

        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