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

Re: QT5 ListBox Problem


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


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----

Attachment: Screenshot_ListBox.png
Description: PNG image


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