PDA

View Full Version : QlistView display file system



dima
5th August 2010, 09:50
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.

Lykurg
5th August 2010, 10:27
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().