Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/p/y/pyqt5-HEAD/examples/itemviews/dirview.py   pyqt5(Download)
model.setRootPath('')
tree = QTreeView()
tree.setModel(model)
 
tree.setAnimated(False)

src/p/y/pyqt5-HEAD/examples/itemviews/customsortfiltermodel.py   pyqt5(Download)
        self.proxyView.setRootIsDecorated(False)
        self.proxyView.setAlternatingRowColors(True)
        self.proxyView.setModel(self.proxyModel)
        self.proxyView.setSortingEnabled(True)
        self.proxyView.sortByColumn(1, Qt.AscendingOrder)

src/p/y/pyqt5-HEAD/examples/itemviews/basicsortfiltermodel.py   pyqt5(Download)
        self.proxyView.setRootIsDecorated(False)
        self.proxyView.setAlternatingRowColors(True)
        self.proxyView.setModel(self.proxyModel)
        self.proxyView.setSortingEnabled(True)
 

src/p/y/pyqt5-HEAD/examples/itemviews/simpletreemodel/simpletreemodel.py   pyqt5(Download)
 
    view = QTreeView()
    view.setModel(model)
    view.setWindowTitle("Simple Tree Model")
    view.show()

src/p/y/pyqt5-HEAD/examples/itemviews/simpledommodel.py   pyqt5(Download)
        self.model = DomModel(QDomDocument(), self)
        self.view = QTreeView(self)
        self.view.setModel(self.model)
 
        self.setCentralWidget(self.view)