Results 1 to 2 of 2

Thread: QFileSystemModel always show expandable or expanded icon

  1. #1
    Join Date
    Mar 2009
    Posts
    14
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default QFileSystemModel always show expandable or expanded icon

    Hi all:
    I am using QFileSystemModel but it always show expandable or expanded icon
    Qt Code:
    1. FileBrowser::FileBrowser()
    2. {
    3. model = new QFileSystemModel;
    4. model->setRootPath(QDir::rootPath());
    5. setModel(model);
    6. setColumnHidden( 1, true );
    7. setColumnHidden( 2, true );
    8. setColumnHidden( 3, true );
    9. setHeaderHidden(true);
    10. }
    To copy to clipboard, switch view to plain text mode 
    how to fix it
    2..png1..png

  2. #2
    Join Date
    Jun 2013
    Posts
    6
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: QFileSystemModel always show expandable or expanded icon

    You can try this:
    treeView->setRootIsDecorated(false);

Similar Threads

  1. QFileSystemModel file icon overlays
    By squidge in forum Qt Programming
    Replies: 2
    Last Post: 18th October 2009, 11:06
  2. QPushButton - Only show the Icon
    By graciano in forum Newbie
    Replies: 9
    Last Post: 19th September 2009, 21:15
  3. Qt 4 expanded mask
    By bunjee in forum Qt Programming
    Replies: 4
    Last Post: 7th May 2008, 14:21
  4. QSystemTrayIcon doesn't show icon ?
    By probine in forum Qt Programming
    Replies: 3
    Last Post: 25th January 2007, 19:17
  5. WYSIWYG html, Window show png icon mac no!
    By patrik08 in forum Qt Programming
    Replies: 10
    Last Post: 25th May 2006, 12:01

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.