Hi everyone,

I have a question regarding the default behaviour of QTreeView. I have a tree view with various different items like folders and file and each have a different icon of different size. The folder's icon is 28x22 and the file's icon is 18x21. When displaying the view, Qt seems to have attempt to keep the width fixed to 18 and a value close to that and the icon of the folder is shrunk to fit. So far, the only way I found to make QTreeView accommodate for the largest icon is to can setIconSize with the size of the largest icon as the parameter.

Wondering what's the default behaviour of QTreeView when it comes to icon size? Is calling setIconSize my best bet?

Thuan