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

Re: QT5 ListBox Problem


Is line 235 of ListBox.class correct Benoit?

    If $hView.ScrollBar And Scroll.Horizontal Then

      $hView.AutoResize = False
      $hView.Columns[0].W = -1

    Else

      $hView.AutoResize = True
      $hView.Columns[0].Expand = False

    Endif

Respects
BruceS



On Fri, 27 Feb 2026 at 20:26, Lee <t.lee.davidson@xxxxxxxxx> wrote:

> On 2/27/26 2:07 PM, Benoît Minisini wrote:
> > Le 27/02/2026 à 17:20, Lee a écrit :
> >> On 2/27/26 5:53 AM, Safiur Rahman wrote:
> >>> Hi
> >>>
> >>> When you assign Scrollbar = Both to ListBox in QT5 from the Property
> window, the list is not displayed properly. Only one
> >>> character is shown in each row of the ListBox.
> >>>
> >>> However, assigning it through code ie. ListBox1.ScrollBar =
> Scroll.Both works perfect.
> >>>
> >>> The problem occurred with gambas 3.21.3 in Ubuntu 24.04 (installed
> through openSUSE build server .
> >>
> >> Confirmed but with some differences.
> >>
> >> I get the same incorrect behavior with Qt5, Qt6, and GTK3 on 3.21.3.
> >> The issue occurs whether ListBox1.ScrollBar = Scroll.Both is set in
> code or via the IDE properties editor.
> >> Sometimes the full first letter is not displayed but only part of it.
> The attached screenshot was taken from the display when,
> >> in code:
> >> ListBox1.List = ["One", "Two", "Three", "Four", "Five", "Six", "Seven",
> "Eight", "Nine", "Ten"]
> >>
> >>
> >
> > 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.
>
>
> --
> Lee
>
> --- Gambas User List Netiquette [
> https://gambaswiki.org/wiki/doc/netiquette] ----
> --- Gambas User List Archive [https://lists.gambas-basic.org/archive/user]
> ----
>
>
>

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>