Results 1 to 5 of 5

Thread: Appropriate widget to display coming data

  1. #1
    Join Date
    Jan 2011
    Location
    Boston, MA USA
    Posts
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default Appropriate widget to display coming data

    I need to display in real time data records coming from TCPIP connection. Each record contains the same number of items. In the other words, I need a multi-column view which can quickly append rows. I am trying QTableWidget but it appears to be more appropriate for the fixed size table. Is there a better one for my purpose?
    Note that data arrives quickly (500 records/sec).

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Appropriate widget to display coming data

    Have you considered to create your own model and display it on a view (perhaps with a custom delegate)? And who is capable to see 500 records a second...

  3. #3
    Join Date
    Jan 2011
    Location
    Boston, MA USA
    Posts
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Appropriate widget to display coming data

    I have, but Its hard to believe that I am the first person who needs to add and display rows of data. Speed is not critical, user will watch it only after communications stop. Besides, typical update rate is much slower.

  4. #4
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Appropriate widget to display coming data

    A standard item model and a tree view will do just fine I think.

  5. #5
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Appropriate widget to display coming data

    For speed, you'll most likely want to store the data in a format that makes sense to you, so why not use a model which simply uses that data rather than duplicating it? Maybe in the future you will also want to save and/or filter that data, so you'll need it in an appropriate format then too.

    Creating your own model is an easy and quick thing to do; it's not even worth copying an existing model to modify to your requirements.

Similar Threads

  1. Display DIB data
    By nightroad in forum Qt Programming
    Replies: 2
    Last Post: 29th December 2010, 21:42
  2. Replies: 1
    Last Post: 21st August 2010, 09:34
  3. Replies: 0
    Last Post: 29th May 2009, 06:08
  4. Replies: 14
    Last Post: 27th November 2006, 05:09

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.