We are running Toradex Multimedia Reference Image on Colibri Evaluation Board with colibri-imx7-emmc SOM.
We have customized the reference image using Yocto to add support for PyQT.
While running fullscreen PyQT application, it throws an error and aborts. There is some discussion in the community regarding similar errors on TotalCross. How to resolve this in QT?
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
xdg_wm_base@18: error 4: xdg_surface geometry (1920 x 720) is larger than the configured fullscreen state (640 x 480)
The Wayland connection experienced a fatal error: Protocol error
The warning qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
indicates that the request to make a window active is not supported by Wayland through QT’s interfaces. This is typically more of a warning than a critical error, as Wayland manages window focus differently than X11. There’s no direct fix required for this.
The error xdg_wm_base@18: error 4: xdg_surface geometry (1920 x 720) is larger than the configured fullscreen state (640 x 480)
suggests that your application is trying to set a window size that exceeds the screen size configured in the display server (Wayland). To resolve this, you need to modify your PyQT application to adapt its resolution based on the screen size it detects on startup or hardcode a window’s size to 640 x 480.
Solved. Thanks for the pointer.