Z
Z
ZIK13372020-11-20 20:16:14
PyQt
ZIK1337, 2020-11-20 20:16:14

Why is the table cell value not copied after setData?

I use QTableWidget, I put the data in the cell as Not setText, because then the column needs to be sorted as integers (id - int), and not as strings It sorts fine, but the values ​​​​are not copied from the cell, why is that? Maybe I passed the wrong arguments to setData?
item.setData(0, id)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question