Dont show drive name using QFileSystemModel
Hi i have a QListView which i am populating with all of the system drives (using a QFileSystemModel)
i only want to display the drive Icon and the drive letter, at the moment it is displaying the drive icon then the drive name (say - System reserved) then the drive letter.
i only want it to show the icon and then the letter if that is possible? Cheers.
You could make QStyledItemDelegate, reimplement displayText and filter the text you don't want to show.