Results 1 to 2 of 2

Thread: QDirModel and a QTreeView.

  1. #1
    Join Date
    May 2006
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default QDirModel and a QTreeView.

    I use a QDirModel and a QTreeView.

    Do you Know some way of changing the name of the columns?, because I want change the "name" by another.

    Thank you everybody

  2. #2
    Join Date
    May 2006
    Posts
    23
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QDirModel and a QTreeView.

    Implement a derived QDirModel class, where you override headerData(), and return your custom column names.

Similar Threads

  1. QDirModel - show directory ".."?
    By jamd in forum Qt Programming
    Replies: 3
    Last Post: 23rd April 2009, 20:51
  2. QDirModel and QTreeView
    By ChMaster in forum Qt Programming
    Replies: 8
    Last Post: 13th April 2006, 21:27
  3. how to use QTreeView with Database model
    By mikro in forum Newbie
    Replies: 3
    Last Post: 13th April 2006, 17:12
  4. Practical QTreeView: Advice needed
    By Jojo in forum Qt Programming
    Replies: 13
    Last Post: 20th February 2006, 21:28
  5. Changing the order of columns in QTreeView
    By johnny_sparx in forum Qt Programming
    Replies: 1
    Last Post: 15th February 2006, 01:00

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.