data of QTreeView rows
I made a QTreeView with a QStandardItemModel to show some data from a MySQL query as a list and it’s working fine. Now I need to get the ‘double-click’ signal from the QTreeView rows, and fill 3 QLineEdit with the data from the row clicked. How do I get the data from the ‘double-clicked’ row?
You connect a slot to signal doubleClicked() [doc.qt.nokia.com]. The model index contains parent, row and column of the model index clicked. In your slot, you can get the current values via