Results 1 to 2 of 2

Thread: QlistView display file system

  1. #1
    Join Date
    Mar 2009
    Location
    Israel
    Posts
    20
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default QlistView display file system

    Hi,
    I use QListView to display filesystem as Thumbnails browser.
    I overide QFileIconProvider and everything looks good ,except I need to hide file extensions, so user see only file base name.

    Can anyone help with it.
    Thnaks.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QlistView display file system

    Use a delegate and manipulate the display role. Or write a custom model where you strip the file name.

    for hiding the extension have a look at QFileInfo::baseName().

Similar Threads

  1. Replies: 0
    Last Post: 21st July 2010, 10:32
  2. How to display My Current System IP Address...???
    By maveric in forum Qt Programming
    Replies: 8
    Last Post: 4th August 2008, 17:22
  3. QListView does not display its model
    By mtrpoland in forum Qt Programming
    Replies: 1
    Last Post: 22nd February 2008, 19:31
  4. Replies: 22
    Last Post: 7th December 2007, 09:01
  5. QListView and delegate to display data
    By T4ng10r in forum Qt Programming
    Replies: 5
    Last Post: 30th May 2007, 09:25

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.