Also it has an overloaded constructor with a QString argument: QTableWidgetItem
Basically what you will do is subclass QTableWidgetItem, and store everything as a QString and then see if it's a double/int value or just a string, or a string that means something (like a formula)
You can download from here the sample code for C++ GUI Programming with Qt4, 2nd Edition, it has an example with that functionality.
Bookmarks