Page 1 of 1

PB 6.30 b4 - ResizeWindow() not work

Posted: Sat Oct 25, 2025 7:44 pm
by User_Russian
In Raspberry Pi OS (Kernel 6.12, Debian 12) when using qt subsystems, not work function ResizeWindow(). There is no problem with gtk subsystems. There is also no this problem with the qt subsystem in LInux Mint for PC.

Code: Select all

Procedure Click()
  ResizeWindow(0, 100, 100, #PB_Ignore, #PB_Ignore)
EndProcedure

If OpenWindow(0, 0, 0, 222, 200, "ButtonGadgets", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  ButtonGadget(0, 10, 10, 200, 20, "Standard Button")
  BindGadgetEvent(0, @Click())
  Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
The window is always centered on the screen even if there is no flag #PB_Window_ScreenCentered.

Re: PB 6.30 b4 - ResizeWindow() not work

Posted: Wed Nov 12, 2025 11:42 am
by Fred
I don't think it's related to PB, but how wayland is working. Unless GTK, QT uses wayland by default on Pi, so the rules apply to it. More info here:

viewtopic.php?p=646377#p646377