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.
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.
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().
Bookmarks