Results 1 to 7 of 7

Thread: Display System Drives in Specific Order in QTreeView

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Feb 2012
    Posts
    24
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    4
    Thanked 11 Times in 11 Posts

    Default Re: Display System Drives in Specific Order in QTreeView

    Basically using this, i tried to play around and did something like this:
    Qt Code:
    1. proxyModel->setSourceModel(pSystemPrimaryModel);
    2.  
    3. // Set the QStandardItemModel model of QTreeView to display audio and video files with details
    4. ui->PrimTreeView->setModel(proxyModel);
    To copy to clipboard, switch view to plain text mode 

    it didnt work..... Looks like I have to use some functions

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


Similar Threads

  1. Replies: 8
    Last Post: 8th May 2012, 00:51
  2. Changing QTableView column display order
    By scarleton in forum Qt Programming
    Replies: 3
    Last Post: 18th October 2010, 01:04
  3. display order of subwindows in mdi area
    By eric_vi in forum Qt Programming
    Replies: 3
    Last Post: 11th May 2010, 17:05
  4. QTreeView: get current sort column and order
    By supergillis in forum Qt Programming
    Replies: 1
    Last Post: 14th October 2008, 18:25
  5. Changing the order of columns in QTreeView
    By johnny_sparx in forum Qt Programming
    Replies: 1
    Last Post: 15th February 2006, 01:00

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.