Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, December 2006
Setting the text of a QTableWidget cell


Message 1 in thread

Hey there,

After I've inserted a row in a QTableWidget, how can I set the text of
a given column in that row? Do I have to manually crete
QTableWidgetItems and set them column by column? If that's the case,
what happens when the user enters text through the interface (in that
case, I'd like to get the text from the cell)? Does an item get
created automatically?
Similarly, how do I set a given cell to be read-only?
I'm using Qt4 BTW.
Should I be using QTableView instead? (I'm moving from Qt3 to 4, and
I'm in a rush, so I haven't really grasped the concept and the
difference between them)
Thanks in advance

Fabio

--
 [ signature omitted ]