PDA

View Full Version : How can I add data from a QTable to a QHash?



josem.brmz98
13th October 2017, 03:43
Hi, I have to add data from a QTable to a QHash, but I don't know how to do it.

Santosh Reddy
13th October 2017, 06:33
What do you mean by QTable ? may be QTableView / QTableWidget / you custom emodel ?

BTW QHash is functionally identical to a std::map / QMap, i.e a table model with just 2 columns.

Read about how to use QMap / QHash