Results 1 to 2 of 2

Thread: QTreeView and QDirModel Header Sort Question

  1. #1
    Join Date
    Mar 2007
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QTreeView and QDirModel Header Sort Question

    I'm using a QTreeView with the QDirModel to display files contained in a specific directory. I would like to use the Header sorting capabilities to sort on the filename or date/time columns. However, when ever I try to change the sorting the using the header the view shows the root system disks. I've look though this community site and the QT documentation but nothing I've found explains how to get around this issue.

    I'm using QT 4.2.3 on windows XP.

    Thanks in Advance!

  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 and QDirModel Header Sort Question

    Do you use QSortFilterProxyModel?
    J-P Nurmi

Similar Threads

  1. Replies: 1
    Last Post: 15th March 2007, 20:45
  2. QDirModel and a QTreeView.
    By jamd in forum Qt Programming
    Replies: 1
    Last Post: 21st June 2006, 09:41

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.