[PyQt] QDirModel in windows

Iván García capiscuas at gmail.com
Sun Jul 13 12:22:56 BST 2008


Is there a way in pyqt windows to show the tree of QDirModel like the 
Explorer does?

Currently I have this:

        model = QDirModel(window)       
        self.folderView.setModel(model)


But it's only showing my drives: A:,C:,D:,Z:(network share),

but I cannot see the Desktop(the root item in the Explorer) and My 
Network Places.

Is there a way to get that or the QDirModel is limited to the unit drives?

Thanks in advance.
Ivan.


More information about the PyQt mailing list