Recent

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

AlexTP

  • Hero Member
  • *****
  • Posts: 2673
    • 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: 18729
  • To Europe: simply sell USA bonds: dollar collapses
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 Europe sells their USA bonds the USD will collapse. Europe can affort that given average state debts. The USA can't affort that. Just an advice...

zeljko

  • Hero Member
  • *****
  • Posts: 1830
    • 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