Forum > QT

Wayland does not support QWindow::requestActivate()

(1/1)

AlexTP:
When I run app on Ubuntu 20.04 on Wayland:


--- Quote ---user@PC:~/Documents/tst-OnKeyUp-with-Ctrl$ ./project1
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
user@PC:~/Documents/tst-OnKeyUp-with-Ctrl$ QT_QPA_PLATFORM=wayland ./project1
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QSocketNotifier: Can only be used with threads started with QThread
Using Wayland-EGL
Using the 'xdg-shell' shell integration
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()

--- End quote ---
Is it possible to hide SUBJ warning?

Thaddy:
I can't see the problem directly, but Wayland causes problems anyway. But since it says it uses EGL, why do not use EGL directly? I had to do that for Raspberry Pi OS. Then again, I do not use Qt. (but I do use EGL)
In short: Wayland is way to soon released.

zeljko:

--- Quote from: AlexTP on May 17, 2024, 08:20:54 pm ---When I run app on Ubuntu 20.04 on Wayland:


--- Quote ---user@PC:~/Documents/tst-OnKeyUp-with-Ctrl$ ./project1
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
user@PC:~/Documents/tst-OnKeyUp-with-Ctrl$ QT_QPA_PLATFORM=wayland ./project1
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QSocketNotifier: Can only be used with threads started with QThread
Using Wayland-EGL
Using the 'xdg-shell' shell integration
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()

--- End quote ---
Is it possible to hide SUBJ warning?

--- End quote ---

Not in Qt5. Note from Qt5 wayland devels (few years ago): This means your window tried to grab focus in the compositor, which is not allowed in wayland. Don't create a bug for it, there's nothing we can do.
So, there won't be any fix for Qt5 IMO, Qt6 is another story in case of wayland.

Navigation

[0] Message Index

Go to full version