Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2016-11

DBLookupComboBox vs Qt

9 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

zeljko
to Gabor Boros
Gabor Boros wrote 7 lines
Hi All, Created an issue in the past but got no answer. Now attached a better example project. Please try and comment. Is it a Qt bug or this is the expected behaviour? http://bugs.freepascal.org/view.php?id=28597

I don't use db controls at all so don't know what's exact problem. Can it be reproduced with regular TComboBox ? I cannot understand what's exact problem from issue explanation ...
1.TCombobox is empty
2.You are assigning items
3.ItemIndex should stay -1 instead of 0 (first item selected ? ) 4.What about other widgetsets ?

zeljko

Reply by email

Gabor Boros
to zeljko

2016. 11. 05. 10:47 keltezéssel, zeljko írta:

Show quoted text 16 lines
On 11/05/2016 10:30 AM, Gabor Boros via Lazarus wrote: > Hi All, > > Created an issue in the past but got no answer. Now attached a better > example project. Please try and comment. Is it a Qt bug or this is the > expected behaviour? > > http://bugs.freepascal.org/view.php?id=28597 I don't use db controls at all so don't know what's exact problem. Can it be reproduced with regular TComboBox ? I cannot understand what's exact problem from issue explanation ... 1.TCombobox is empty 2.You are assigning items 3.ItemIndex should stay -1 instead of 0 (first item selected ? ) 4.What about other widgetsets ?

Attached a screenshot to the issue. My problem is with Qt widgetset... If append a record into an empty dataset in FormShow the new record selected automatically in the DBLookupComboBox.

Gabor

Reply by email

Gabor Boros
to zeljko: I don't use db controls at all so don't know what's exact problem. Can it be reproduced…

2016. 11. 05. 10:47 keltezéssel, zeljko írta:

Show quoted text 11 lines
On 11/05/2016 10:30 AM, Gabor Boros via Lazarus wrote: > Hi All, > > Created an issue in the past but got no answer. Now attached a better > example project. Please try and comment. Is it a Qt bug or this is the > expected behaviour? > > http://bugs.freepascal.org/view.php?id=28597 Can it be reproduced with regular TComboBox ? I cannot understand what's exact problem from issue explanation ...

Yes I got same result with a TComboBox. See the attached screenshot, better than my description.

1.TCombobox is empty

Yes.

2.You are assigning items

Yes, in two places. In FormCreate and in FormShow.

3.ItemIndex should stay -1 instead of 0 (first item selected ? )

No automatic selection if Items filled up in FormCreate but automatic selection if filled up in FormShow.

4.What about other widgetsets ?

On Windows works as expected. Nothing selected. (Got same result with Delphi.)

Gabor

Reply by email

zeljko
to Gabor Boros
Gabor Boros wrote 15 lines
2016. 11. 05. 10:47 keltezéssel, zeljko írta: > On 11/05/2016 10:30 AM, Gabor Boros via Lazarus wrote: >> Hi All, >> >> Created an issue in the past but got no answer. Now attached a better >> example project. Please try and comment. Is it a Qt bug or this is the >> expected behaviour? >> >> http://bugs.freepascal.org/view.php?id=28597 > > Can it be reproduced with regular TComboBox ? I cannot understand what's > exact problem from issue explanation ... Yes I got same result with a TComboBox. See the attached screenshot, better than my description.

Ok, then please create example project with TComboBox - it's easier to fix it then.

Show quoted text 13 lines
> 1.TCombobox is empty Yes. > 2.You are assigning items Yes, in two places. In FormCreate and in FormShow. > 3.ItemIndex should stay -1 instead of 0 (first item selected ? ) No automatic selection if Items filled up in FormCreate but automatic selection if filled up in FormShow.

I see, in FormShow TComboBox handle is created, so something happening at WS part.

Show quoted text 6 lines
> 4.What about other widgetsets ? On Windows works as expected. Nothing selected. (Got same result with Delphi.)

Ok, just create example project with TComboBox which reproduces problem so I'll sit with it and try to fix it somehow.

zeljko

Reply by email

Gabor Boros
to zeljko

2016. 11. 05. 13:05 keltezéssel, zeljko írta:

Ok, just create example project with TComboBox which reproduces problem so I'll sit with it and try to fix it somehow.

Done. You can find as an attachment in the bugtracker.

Gabor

Reply by email

zeljko
to Gabor Boros
Gabor Boros wrote 6 lines
2016. 11. 05. 13:05 keltezéssel, zeljko írta: > Ok, just create example project with TComboBox which reproduces problem > so I'll sit with it and try to fix it somehow. Done. You can find as an attachment in the bugtracker.

Tnx.

zeljko

Reply by email