Important: Please read the Qt Code of Conduct -

QTableWidget items

  • I created a QTableWidget and want to have each item/cell of the table editable. When I try to call tableWidget->itemAt(x,y)->setText, the item does not seem to be there (seg fault). I could create a widget for each cell, but it seems very tedious. Is this the way the QTableWidget supposed to be?

    Also none of the cells is editable. I tried in the designer to mark the cell item as editable, but it is not working.

    I don't see a way to set the column width either. Any help is appreciated.

  • Moderators

    Please do not double-post. I am closing this thread.

    Please use this "thread": instead.

Log in to reply