I was wondering how I can return the text value, and index of a selected item in a QTreeView. I tried using:
self.TreeView.selectedIndexes()
but that returns a QModelIndex. I'm not exactly sure how to convert that to an integer value. Googling around, I haven't really found anything about getting the text value either. Any ideas?
Sorry if this is a basic knowledge question. I'm new to python, and self teaching. In java, most objects can be casted, but I'm not really sure how that works with QObjects in Python.
I'm currently using Python 3.6 and PyQt5