J
J
jonikwm2015-09-19 20:00:18
Python
jonikwm, 2015-09-19 20:00:18

How to get data in pyQT?

Hello. I don’t understand the logic: I
set the QSqlTableModel() model,
filtered out QSortFilterProxyModel()
showed QTreeView()
saw what I wanted.
And how can I get what I saw in the form of a list, a tuple, etc. etc.
What will QSortFilterProxyModel() or QTreeView() refer to?
How to do it correctly (without reinventing the wheel)?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail, 2015-09-25
@jonikwm

It is undoubtedly worth contacting QSortFilterProxyModel, since QTreeView is a view, it does not contain data, but only displays them. Data can be obtained through the data() method.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question