[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QT5 ListBox Problem


Le 28/02/2026 à 06:25, Lee a écrit :
On 2/27/26 7:19 PM, Benoît Minisini wrote:
Le 27/02/2026 à 21:25, Lee a écrit :
Does the problem occur with the master branch?


Yes, the issue persists on 3.21.99 409093b (master) with all three of those GUI toolkits.

It occurs only if ListBox.ScrollBar is set to include Horizontal with either Scroll.Horizontal or Scroll.Both.



I asked because I can't reproduce the problem. Can you send me a little project that shows the bug?


I've discovered that the issue occurs if ListBox.Scrollbar is set to include Scroll.Horizontal *prior* to ListBox.List being populated (which would include setting it via the IDE's property sheet). A project that shows the bug is very simple.

Merely add a ListBox to a form, set its Scrollbar property to None so it can be controlled programmatically, and then use just this code in FMain.class:

[code]
Public Sub Form_Open()

     ' ListBox1.ScrollBar = Scroll.Both ' Setting it here causes the issue
    ListBox1.List = ["One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten"]     ' ListBox1.ScrollBar = Scroll.Both ' Setting it here does not cause the issue

End
[/code]



Thanks, it should be fixed in master now.

Regards,

--
Benoît Minisini.


Follow-Ups:
Re: QT5 ListBox ProblemLee <t.lee.davidson@xxxxxxxxx>
References:
QT5 ListBox ProblemSafiur Rahman <isafiur@xxxxxxxxx>
Re: QT5 ListBox ProblemLee <t.lee.davidson@xxxxxxxxx>
Re: QT5 ListBox ProblemBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: QT5 ListBox ProblemLee <t.lee.davidson@xxxxxxxxx>
Re: QT5 ListBox ProblemBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: QT5 ListBox ProblemLee <t.lee.davidson@xxxxxxxxx>