Print the value of a QStringList in a row of a QTableView



  • 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


  • Lifetime Qt Champion

    Hi,

    You can use QStringList::join function to make a QString out of your QStringList


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.