Recent

Author Topic: Wayland does not support QWindow::requestActivate()  (Read 1939 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2479
    • UVviewsoft
Wayland does not support QWindow::requestActivate()
« 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()
Is it possible to hide SUBJ warning?

Thaddy

  • Hero Member
  • *****
  • Posts: 16135
  • Censorship about opinions does not belong here.
Re: Wayland does not support QWindow::requestActivate()
« Reply #1 on: May 17, 2024, 08:37:20 pm »
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.
If I smell bad code it usually is bad code and that includes my own code.

zeljko

  • Hero Member
  • *****
  • Posts: 1668
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Wayland does not support QWindow::requestActivate()
« Reply #2 on: May 17, 2024, 08:50:58 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()
Is it possible to hide SUBJ warning?

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.


 

TinyPortal © 2005-2018