Hello everybody,<div><br></div><div>When trying to "reset" a form, consisting out of some QLineEdits and QSpinBoxes, I use this small piece of code:</div><div><br></div><div><div><font face="'times new roman', serif"><br>


</font></div><div><font face="'times new roman', serif">for field in [self.customerDataLayout.itemAtPosition(row, 1) for row in xrange(0, self.customerDataLayout.rowCount())]:</font></div>
<div><font face="'times new roman', serif">            widget = field.widget()</font></div><div><font face="'times new roman', serif">            widget.clear()</font></div>
<div><font face="'times new roman', serif">            widget.setEnabled(False)</font></div><div><font face="'times new roman', serif"><br></font></div><div>
<font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">The result is that all those QLineEdits and QSpinBoxes are in fact 'cleared' and disabled, but the side effect is that some sort of vertical line (cursor?) is drawn in each QLineEdit (see the attachment for a screenshot of this problem).</font></div>


<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Is this normal behavior? How do I disable this vertical line to be shown?</font></div>
<div><br></div><br>-- <br>Nick Gaens<br>
</div>