Hello there,
I have created custom file system model which displays folders and file. There is one requirement: I would like to always display expand arrow next to the empty folders. Therefore I implemented two methods:
hasChildren() - always return true if item is a folder
rowCount() - in empty folder, returns 0.
Right now I have an effect where arrow is sometimes visible and sometimes not (hasChildren return true, rowCount returns 0).
I don't know if I'm doing this right way. It looks like function get sometimes information about a children from rowCount instead of hasChildren.
Is there any way I can get it working? I'm using Qt 4.7.4
Thanks in advance.
Bookmarks