view.setModel(model)
view.setRootIndex(model.index(QDir.homePath()))
splitter.show()
splitter.setWindowState(Qt.WindowMaximized)
sys.exit(app.exec_())
how to create folder view in pyqt inside main window