Results 1 to 7 of 7

Thread: QTreeView memory consumption

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    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: QTreeView memory consumption

    Memory measurement via the task manager is like asking a baby the yield of a certain nuclear bomb :-)
    It doesn't tell you the real information you want.

    Nevertheless I believe you when your program starts using more and more memory. I also enjoyed using the list and tree widgets of windows.

    Your understanding that using QStandardItemModel will reduce QTreeView to QTreeWidget isn't correct. QTreeWidget manages the items itself. Using a QTreeView together with QStandardItemModel changes nothing. It's a standard view and a standard model.

    For SQL queries I suggest you look into one of the QSql...Model classes. Try it first with one of these and see if you still get big memory consumptions.

    For a personal project I need to display thousands of items from a database in a treeview, and the memory consumption is minimal.

  2. The following user says thank you to tbscope for this useful post:

    eyeofhell (25th May 2010)

Similar Threads

  1. QSqlQueryModel and memory consumption
    By lunatic fringe in forum Qt Programming
    Replies: 3
    Last Post: 5th February 2010, 11:09
  2. Replies: 0
    Last Post: 17th November 2009, 21:19
  3. QTableView memory consumption
    By LordQt in forum Qt Programming
    Replies: 7
    Last Post: 9th December 2008, 16:51
  4. Pixmap memory consumption
    By bunjee in forum Qt Programming
    Replies: 9
    Last Post: 29th November 2007, 15:35
  5. Tracking memory consumption of plugins.
    By spud in forum General Programming
    Replies: 3
    Last Post: 7th September 2007, 13:14

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
  •  
Qt is a trademark of The Qt Company.