How to use QTableWidgetItem::Usertype?
Hi all,
i want to plot values from a QTableWidget in qwt. Can anyone let me know how i can restrict the item types in every cells of my table to double values?
In the Qt4 doc, i saw QTableWidgetItem::Usertype. Maybe it's the solution to my problem but i don't know how to use it.
Thx a lot 4 the answers.
Re: How to use QTableWidgetItem::Usertype?
Create a custom delegate and return QDoubleSpinBox as editor. See the Spin Box Delegate Example for more details.
Re: How to use QTableWidgetItem::Usertype?