[Qt-interest] QTableWidgetItem support for validators?

Rui Maciel rui.maciel at gmail.com
Fri Sep 16 15:39:20 CEST 2011


I intended to use a QTableWidget to edit the value of a set of numbers.  
Yet, I haven't found a way to force QTableWidget to only accept input which 
corresponds to a given number format.  On the other hand, QLineEdit does 
provide this feature in the form of validator classes, such as 
QDoubleValidator.  

So, is it possible to force QTableWidget to only accept specific input, 
similar to what has been implemented in QLineEdit through validator classes?


Thanks in advance,
Rui Maciel



More information about the Qt-interest-old mailing list