[PyQt] Clearing and disabling a QLineEdit causes a cursor to be shown?

2010-10-09 Thread Nick Gaens
Hello everybody, When trying to reset a form, consisting out of some QLineEdits and QSpinBoxes, I use this small piece of code: for field in [self.customerDataLayout.itemAtPosition(row, 1) for row in xrange(0, self.customerDataLayout.rowCount())]: widget = field.widget()

Re: [PyQt] Clearing and disabling a QLineEdit causes a cursor to be shown?

2010-10-09 Thread Hans-Peter Jansen
On Saturday 09 October 2010, 14:43:19 Nick Gaens wrote: Hello everybody, When trying to reset a form, consisting out of some QLineEdits and QSpinBoxes, I use this small piece of code: for field in [self.customerDataLayout.itemAtPosition(row, 1) for row in xrange(0,