PDA

View Full Version : Print the value of a QStringList in a row of a QTableView



lima_will
26th September 2013, 16:00
Guys,

I set up a table with the data entered by the customer of the fields is a QComboBox, I'm taking the values ​​and putting in a QStringList now need to show these values ​​in a single row, how can I be doing this?
I tried using a for but overrides the value for a QString using this syntax:


ui-> tableWidget-> setItem (column, line, new QTableWidgetItem (list));

That way I can put a QString there on the field, but I can not do with a QStringList

ChrisW67
26th September 2013, 21:27
Iterate over the string list and create an item for each string. I don't see what the difficulty is.