Results 1 to 5 of 5

Thread: QTreeView Fixed column & QTableView

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2006
    Location
    Catalunya - Spain
    Posts
    117
    Thanks
    16
    Thanked 8 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTreeView Fixed column & QTableView

    You did it !! Setting uniformRowheights improves speed a lot !! I've presumed that that option was the default. I was wrong...

    Or at least it MUST be the default

    Thanks a lot !!

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QTreeView Fixed column & QTableView

    Quote Originally Posted by jpujolf View Post
    Setting uniformRowheights improves speed a lot !! I've presumed that that option was the default. I was wrong...

    Or at least it MUST be the default
    It cannot be the default value because it would break lists which don't happen to have uniform row heights. Having uniform row heights is a common, but still special case. Special cases can be used as optimizations but not as defaults. I guess somebody skipped the "Improving Performance" section in QTreeView while starting to use the class.
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    jpujolf (13th August 2008)

  4. #3
    Join Date
    Jul 2006
    Location
    Catalunya - Spain
    Posts
    117
    Thanks
    16
    Thanked 8 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTreeView Fixed column & QTableView

    Quote Originally Posted by jpn View Post
    I guess somebody skipped the "Improving Performance" section in QTreeView while starting to use the class.
    Oh dear !! I think I've to stop making diagonal-reads of documentation...

Similar Threads

  1. QTableView column trouble
    By nategoofs in forum Qt Programming
    Replies: 6
    Last Post: 27th October 2009, 20:14
  2. QTableView + QSqlQueryModel column alignment
    By frido in forum Qt Programming
    Replies: 1
    Last Post: 22nd July 2008, 06:12
  3. Fixed Column in QTreeview
    By ormonde in forum Qt Programming
    Replies: 3
    Last Post: 12th May 2008, 07:49
  4. How to merge QTableView and QTreeView ???
    By Xaleandr in forum Newbie
    Replies: 2
    Last Post: 29th December 2007, 17:58
  5. How to dispay an icon in the first column of QTreeView
    By yogeshm02 in forum Qt Programming
    Replies: 1
    Last Post: 5th January 2006, 15:51

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.