When entering a QTableWidget in the third to eighth column, I only want to allow integers and decimal numbers with three decimal places. Have tried various things:
self.vg.tablewidget.setValidator(QRegExpValidator(QRegExp("[0-9]*[.]{,1}[0-9]{,3}"))) or
self.vg.tableWidget.setItemDelegateForColumn(2, QRegularExpressionValidator(("[0-9]*[.]{,1}[0-9]{,3}"))).
Unfortunately without success.