TableWidget or TableView?



  • 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


  • Lifetime Qt Champion

    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



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


  • Lifetime Qt Champion

    How are you doing it currently ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.