Planned maintenance has been done but it did not solve the problem. So work will continue on this and a new time for trying updates will be announced asap.

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.


  • Lifetime Qt Champion

    Hi,

    You could make QStyledItemDelegate, reimplement displayText and filter the text you don't want to show.


Log in to reply