[Qt] ComboBox OnChange and OnSelect
Juha Manninen
juha.manninen at phnet.fi
Tue Dec 22 15:47:12 CET 2009
Hi,
I don't know which is the right behavior but GTK2 and QT bindings work
differently.
With QT bindings, ComboBox OnChange and OnSelect events are called also when
adding items in program like:
ComboBox.Items.Add('text');
With GTK2 bindings they are not called.
I needed to react only when user selects an item in combobox. The GTK version
worked straight away but I had to make an "UpdatingList" flag to make the QT
version work.
Now, calling OnChange when items are added is actually logical (because the
list is changing) but OnSelect should be called only on user's selection
(IMO).
I don't know how Delphi does it.
Regards,
Juha Manninen
More information about the Qt
mailing list