Results 1 to 3 of 3

Thread: Cannot rename some folders with QDirModel+QTreeView?

  1. #1
    Join Date
    Apr 2010
    Posts
    98
    Thanks
    19
    Thanked 8 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Question Cannot rename some folders with QDirModel+QTreeView?

    I create a QTreeView,then add a QDirModel to it.

    You can see there are 4 folders under D: which are not renamable.(Neither by "F2" or "Double-Click")
    Also,there is a folder under F: which is renamable.
    Seems like those folders whose icon is changed cannot be renamed.
    How can I rename the folder,even its icon is changed?
    Does someone have a clue what's going on?Thanks~
    It's not the goodbye that hurts,but the flashback that follow.

  2. #2
    Join Date
    Aug 2006
    Posts
    221
    Thanks
    3
    Thanked 29 Times in 19 Posts

    Default Re: Cannot rename some folders with QDirModel+QTreeView?

    Question is....can you rename them manually? Without Qt? In other words: Do you have the rights to rename them?

    Btw. unrelated hint: You are using QDirModel. You might want to look into QFileSystemModel as the far superior alternative.

  3. #3
    Join Date
    Apr 2010
    Posts
    98
    Thanks
    19
    Thanked 8 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Cannot rename some folders with QDirModel+QTreeView?

    I have full rights to rename them(in Windows Explorer)...Besides,talking about this question,QFileSystemModel just acts like QDirModel.lol.
    It's not the goodbye that hurts,but the flashback that follow.

Similar Threads

  1. move folders in QDirModel
    By janus in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2009, 18:38
  2. Rename a QTreeView->header() column??
    By killerwookie99 in forum Newbie
    Replies: 1
    Last Post: 15th August 2008, 20:19
  3. QDirModel and QTreeView cut and paste
    By Micawber in forum Qt Programming
    Replies: 4
    Last Post: 28th May 2008, 20:16
  4. QDirModel and a QTreeView.
    By jamd in forum Qt Programming
    Replies: 1
    Last Post: 21st June 2006, 09:41
  5. QDirModel and QTreeView
    By ChMaster in forum Qt Programming
    Replies: 8
    Last Post: 13th April 2006, 20:27

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.