I've the following code (QT 4.7):
Qt Code:
QFileSystemModel *treeModel = new QFileSystemModel; libTree->setModel(treeModel); libTree->setItemsExpandable(true); libTree->expandAll();To copy to clipboard, switch view to plain text mode
expandAll() doesn't produce what I expected (i.e. automatically expand all nodes), and expandToDepth(int) doesn't work either. Any idea why? Thanks
Bookmarks