Results 1 to 3 of 3

Thread: How many rows can view handle (table/tree/list)

  1. #1
    Join Date
    Jun 2015
    Location
    India
    Posts
    185
    Thanks
    8
    Thanked 14 Times in 14 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default How many rows can view handle (table/tree/list)

    Hi,

    I have come across below link. I am building 64-bit application on Linux, In this case How many rows my view (I am building tree) can handle ?

    1. can I change default height (30) to 15 (in this case view can handle more rows than in default height case right ?)

    https://bugreports.qt.io/browse/QTBUG-28631
    Thanks :-)

  2. #2
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Thanks
    13
    Thanked 153 Times in 150 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: How many rows can view handle (table/tree/list)

    Simple answer, QTableView, QTreeView, and QListView can handle way more items than you should attempt to display using the model/view paradigm IMHO. The view of course only has to manage the number of items visible in the view, and the scollbar, which will become useless if your model returns a large number for rowCount.

    Even though QAbstractItemModel can do lazy loading, scrolling through tens of thousands of results is not user friendly IMHO and certainly not hundreds of thousands, millions, or billions of items. If your model is intelligent, it will store only items visible in the view, or perhaps 3 pages worth of items (previous page of items, current page, and next page of items), etc. But scrolling through a huge result set, even with lazy loading intelligently performed by the model is not a user interface I'd like to be stuck with.

    It's not uncommon for applications that have huge datasets to provide search only results on the dataset and even then, may limit search results to a reasonable number of results. If the search is too generic, return an error and require more specific search criteria, etc. Your search criteria may include date ranges, item property values, keywords, etc. but should require the user to produce search criteria that only returns a manageable set of results IMHO.

    Rather than try to max out the theoretical limits of what the Qt model/view classes can support, I would suggest that you rethink your user interface so that it provides a better user experience.

    Hope that helps, good luck!
    I write the best type of code possible, code that I want to write, not code that someone tells me to write!

  3. #3
    Join Date
    Jun 2015
    Location
    India
    Posts
    185
    Thanks
    8
    Thanked 14 Times in 14 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How many rows can view handle (table/tree/list)

    Quote Originally Posted by jefftee View Post
    Rather than try to max out the theoretical limits of what the Qt model/view classes can support, I would suggest that you rethink your user interface so that it provides a better user experience.
    Actually I need to show huge data in tree view, when number of rows are more than 7 crore I have seen my application gets crashing and then when I started searching for the solution I came across this bug and just wanted to know the bearable size/number of rows view can handle, so that I can go for another approach like paging or something else.
    Thanks :-)

Similar Threads

  1. Building Tree view from Table view which is already build.
    By DURGAPRASAD NEELAM in forum Newbie
    Replies: 1
    Last Post: 6th June 2015, 16:26
  2. Building Tree view from Table view which is already build.
    By DURGAPRASAD NEELAM in forum Newbie
    Replies: 6
    Last Post: 18th May 2015, 07:18
  3. Replies: 5
    Last Post: 3rd April 2010, 04:07
  4. Replies: 4
    Last Post: 26th October 2009, 22:25
  5. Vertical alignment of rows in a tree view
    By Micawber in forum Qt Programming
    Replies: 9
    Last Post: 17th June 2008, 21:06

Tags for this Thread

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.