[Qt] ComboBox OnChange and OnSelect
Luiz Americo Pereira Camara
luizmed at oi.com.br
Tue Dec 22 20:01:22 CET 2009
zeljko escreveu:
> On Tuesday 22 December 2009 16:59, Juha Manninen wrote:
>
>> On tiistai, 22. joulukuuta 2009 16:59:46 zeljko wrote:
>>
>>> It's easy to get delphi behaviour with qt, just write here what is the
>>> right behaviour.
>>>
>> Well, I don't remember it and I can't test it now because I don't have
>> Delphi or even Windows in my machine currently.
>>
>> I was working with Delphi for many years. This autumn things changed as I
>> started studying again (as a middle aged man).
>>
>> Anyway, I think OnChange and OnSelect should behave differently from each
>> other.
>>
>
> I must know what's correct way in case of Items.Add(), Items.Clear() etc.
> Someone got Delphi here ?
>
Yes.
> Does OnChange() triggers when adding or clearing items ?
>
No. In fact was a bug already fixed in gtk:
http://bugs.freepascal.org/view.php?id=1428
I've made an app to test combobox behavior (attached)
Some (old) discussion about the issue:
http://bugs.freepascal.org/view.php?id=1495
Luiz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ComboBoxItemIndex.zip
Type: application/zip
Size: 2712 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/qt/attachments/20091222/1667608e/attachment-0002.zip>
More information about the Qt
mailing list