[Qt] QT binding anomalies
Juha Manninen
juha.manninen at phnet.fi
Fri Mar 5 21:20:58 CET 2010
I found one minor thing from the code when debugging.
procedure TQtComboBox.setEditable(const AValue: Boolean);
begin
QComboBox_setEditable(QComboBoxH(Widget), AValue);
if not AValue then
FreeAndNil(FLineEdit)
else
begin
LineEdit.setFocusPolicy(getFocusPolicy);
setText(FText);
end;
// if AValue then
// setText(FText);
end;
The last commented lines can be removed.
I didn't find the actual problem I was looking for. I noticed however that the
problem happens AFTER assigning stringlist to combobox items, not during the
assignment.
There is a complicated set of messages as you suggested and they are very
difficult to debug.
> Maybe it would be best solution to disable all signals of TQtComboBox and
> TQtLineEdit and then see if there's flick.
I don't know how to disable them and now my brain capacity is used for today.
I may return to this later but I may also wait until you have new versions of
everything and you experience this problem, too. :-)
I even set breakpoints to
TQtLineEdit.getText and TQtLineEdit.setText
but they were not triggered. I don't know what is happening there, it may not
be the edit control after all.
Regards,
Juha
More information about the Qt
mailing list