def createWidget(self, qt_parent=None): """ Return an editor widget suitable for editing the data type. For example, for QDateTime return a QDateTimeEdit(parent) """ sb = QDoubleSpinBox(qt_parent) sb.setFrame(False) sb.setMinimum(-float_info.max) sb.setMaximum(float_info.max) return sb