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

Re: QT5 ListBox Problem


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] ----


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