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. TableWidget or TableView?
Forum Updated to NodeBB v4.3 + New Features

TableWidget or TableView?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.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.
  • M Offline
    M Offline
    Munire
    wrote on last edited by
    #1

    Hi, i have been reading this forum for a long time, i got a lot problems solved reading it, but now i am in need to to ask a question.

    First I explain my proyect:
    I receive randomly a data structure from a socket (with diferent fields, like timestamp, info, description...), called "event".
    This events, i have to record them in my database and show them in a table. When it arrives, the row of the event should blink between two colors until the user press a button.

    For the moment i tried with a QTableWidget to populate the fields one by one in a row, and blink it in a Qtimer , and it works like a charm. But i am wondering if it is the best way to do it.

    So my questions is, is TableWidget or TableView recommended for what i want to do?

    Thank you all

    Munire

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

      Hi and welcome to devnet,

      Since you have a database, it sounds like a QTableView with a QSqlTableModel would do the job unless I missed something

      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
      • M Offline
        M Offline
        Munire
        wrote on last edited by
        #3

        Thank you for your reply, but how can i blink a row and control it in Qtableview?

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

          How are you doing it currently ?

          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

          • Login

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