[Gambas-user] QT gui no longer working correctly! I think...

Bruce Steers bsteers4 at gmail.com
Mon Apr 4 12:34:17 CEST 2022


On Mon, 4 Apr 2022 at 11:18, Bruce Steers <bsteers4 at gmail.com> wrote:

>
>
> On Sun, 3 Apr 2022 at 21:26, Brian G <brian at westwoodsvcs.com> wrote:
>
>> Using mint 20.3
>> Creating forms from within my app dynamically.
>> setting the env to gtk looks like this and works correctly:
>> Setting the env to qt looks like this and does not respond to any mouse
>> inputs. All text is shifted to the left off screen.
>>
>> Has anyone else seen this behavior.
>>
>
> I can reproduce that behavior if i do the following...
> Manually make a form with size 400x100 and do not set .Arrangement
> Then manually add a button with same size 400x100
> Like your picture shows on QT there is a gap but not in GTK
>
> But if i set Arrangement = Arrange.Fill (or any other arrange setting than
> None) then no problem
>

Maybe it's a scaling issue?

It seems to work when i make the button and do not set .Width / Height but
use the ResizeScaled method...

myForm = New Form
myForm.W = 400
myForm.H = 100

b = New Button(myForm)
b.ResizeScaled(400, 100)

Respects
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220404/6df14c04/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 11933142
Type: image/png
Size: 4749 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220404/6df14c04/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 11992648.5
Type: image/png
Size: 5294 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220404/6df14c04/attachment-0003.png>


More information about the User mailing list