PDA

View Full Version : set the (global) min/max attribute of the persistentEditor



jmh
22nd January 2007, 09:32
I want to set the global min/max attribute of the 'persistentEditor'
I use the QSqlTableModel/QTableView approach. The editor is usually a QDoubleSpinBox for doubles (numeric). I want to adjust the range of that editor. Let say by using the setRange method QDoubleSpinBox.setRange(0, 1000000).
How can I do that? I know the index but i don't know how to get the QDoubleSpinBox.
Please -I need a hint
Regards - jmh

wysota
22nd January 2007, 09:41
If you only need to change the range on startup, then you might use QItemEditorFactory and register a new editor there.