I am new to Qt and am slowly finding my way around. My goal is to have a QListView
of a QFileSytemModel
where the names of the files in the icons wraps, similar to the behavior found on any OS where the text gets split if the name is too long.
From perusing the internet, I believe I need to create a custom class that extends QAbstractItemDelegate
to do my special drawing and text wrapping. However, I haven't been able to find the default ItemDelegate
that the stock QListView
class uses out of the box.
The reason I want the default class is so I can poke around and figure out more about the life-cycle of Qt components while working on my own renderer. I was wondering if anyone knew of where the default renderer for the QListView
class could be found?