[Bug 2063332] Re: Ubuntu 24.04 Wayland and Qt5 (regression - worked in Ubuntu 22.04)
I have tested it both on the real DE and also VM. Created a new account in VM (no settings adjustments whatsoever) and still it does not catch those shortcuts. I wouldn't mind the decorations but the shortcuts issue is weird. Especially, if it works for you. Btw. your tester app has correct decorations compared to DC (Double Commander) but I wouldn't be worried about it. So far I am running the important apps with "xcb" and I am satisfied as all works. \ Thank you -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2063332 Title: Ubuntu 24.04 Wayland and Qt5 (regression - worked in Ubuntu 22.04) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/2063332/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2063332] Re: Ubuntu 24.04 Wayland and Qt5 (regression - worked in Ubuntu 22.04)
> I have tried your tester app and Ctrl+~ is not working for me in Ubuntu 24.04 (Gnome 46). It’s strange that some combinations work for me and not you, and some for you and not me. Maybe it depends on the DE configuration? Can you try in a VM or with a new user? > qgnomeplatform-qt5 is unmaintained a no longer developed, so not sure if it's the right solution. Yes, it is replaced by QAdwaitaDecorations (https://github.com/FedoraQt/QAdwaitaDecorations) but it was not packaged in time for 24.04, so it will be available only in later releases. And for 24.04 qgnomeplatform-qt5 is the best available solution. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2063332 Title: Ubuntu 24.04 Wayland and Qt5 (regression - worked in Ubuntu 22.04) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/2063332/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2063332] Re: Ubuntu 24.04 Wayland and Qt5 (regression - worked in Ubuntu 22.04)
Thank you for spending the time on this, Dmitry. I have tried your tester app and Ctrl+~ is not working for me in Ubuntu 24.04 (Gnome 46). I have also realized I made a mistake (Alt+Shift+F7 works fine for me) but what does not is Alt+Shift+?. I changed your code to use QKeySequence(Qt::SHIFT | Qt::ALT | Qt::Key_Question) instead and then, it also does not work. So your tester works only for Ctrl+. for me. qgnomeplatform-qt5 is unmaintained a no longer developed, so not sure if it's the right solution. The app I am using is Double Commander built with qt5 support. It is not a native app but works best for me as far as file commanders go. It can be configured with your own shortuts and displays the shortcut you have pressed. For Ctrl+. and Shift+Alt+? no shortcut is detected (almost like you did not press any key). For Ctrl+~ is detects Ctrl+0 (with gt2 it detects Ctrl+~). I know it is not a native Qt5 app and can be an issue with some FPC/Lazarus qt unit though. But still, even your tester does not work with those 2 shortcuts. Thank you again -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2063332 Title: Ubuntu 24.04 Wayland and Qt5 (regression - worked in Ubuntu 22.04) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/2063332/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2063332] Re: Ubuntu 24.04 Wayland and Qt5 (regression - worked in Ubuntu 22.04)
> Only the third one is not working (Shift+Alt+F7). Maybe that is because Alt+F7 is toggling moving windows in GNOME. Replacing F7 with F9 makes it work fine too. Follow-up on this: I tried in a different desktop environment (GNOME Flashback with Metacity) and Shift+Alt+F7 is working fine there. So it's not a problem in Qt, but rather depending on the desktop. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2063332 Title: Ubuntu 24.04 Wayland and Qt5 (regression - worked in Ubuntu 22.04) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/2063332/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2063332] Re: Ubuntu 24.04 Wayland and Qt5 (regression - worked in Ubuntu 22.04)
So, three of four problems are solved by installing qgnomeplatform-qt5. Today I looked at the remaining problem: the shortcuts. I made a small test program (attached) that registers the three combinations you mentioned, and tested it on Ubuntu 24.04. For me, the first two combinations (Ctrl+Period and Ctrl+~) work fine. Only the third one is not working (Shift+Alt+F7). Maybe that is because Alt+F7 is toggling moving windows in GNOME. Replacing F7 with F9 makes it work fine too. If Ctrl+Period and Ctrl+~ combinations do not work in some of the apps, please tell me what exactly are those apps. To build my test program, you can install g++ and qtbase5-dev packages, and then run this command: g++ main.cpp -o main -fPIC -I/usr/include/x86_64-linux-gnu/qt5 -lQt5Widgets -lQt5Gui -lQt5Core ** Attachment added: "main.cpp" https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/2063332/+attachment/5777420/+files/main.cpp -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2063332 Title: Ubuntu 24.04 Wayland and Qt5 (regression - worked in Ubuntu 22.04) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/2063332/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2063332] Re: Ubuntu 24.04 Wayland and Qt5 (regression - worked in Ubuntu 22.04)
** Summary changed: - Multiple problems Ubuntu 24.04 with Qt5 + Ubuntu 24.04 Wayland and Qt5 (regression - worked in Ubuntu 22.04) ** Description changed: - After the upgrade to the 24.04 beta Qt5 UI is not at its best. Please, - notice that all this functionality is working on 22.04. + After the upgrade to 24.04 beta Wayland and Qt5 UI is not at its best. + Please, notice that all this functionality is working on 22.04 Wayland. 1. Windows controls settings from Gnome are not applied When you set the Windows Title bar buttons to Placement Left, then Qt apps ignore this setting. The default gt4 apps behave properly and place the buttons to the left. 2. Windows actions like double click to maximize from settings also do not with in the Qt5 apps unlike in gt4 apps. 3. Several keyboard shortcuts are passed differently to Qt5 apps. The key "Ctrl+Period" is not passed to the qt app at all The key "Ctrl+~" is passed as "Ctrl+0" The key "Shift+Alt+F7" is also not working This means some different handling is applied in Qt5 apps 4. If you use the env var "export QT_QPA_PLATFORM=xcb" and start the Qt5 - app, then it all works properly. The windows controls are on the right - side, you can use double click the title bar to maximize and also the - shortcuts are working fine. However, in such scenario no app starts - fullscreen. It starts in a positioned window (the position is - remembered) instead even if you maximized the window before you exited - it. + app, then it all works properly. ProblemType: Bug DistroRelease: Ubuntu 24.04 Package: libqt5core5t64 5.15.13+dfsg-1ubuntu1 ProcVersionSignature: Ubuntu 6.8.0-28.28-generic 6.8.1 Uname: Linux 6.8.0-28-generic x86_64 ApportVersion: 2.28.1-0ubuntu2 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: ubuntu:GNOME Date: Wed Apr 24 14:20:24 2024 InstallationDate: Installed on 2020-05-12 (1443 days ago) InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423) SourcePackage: qtbase-opensource-src UpgradeStatus: Upgraded to noble on 2024-04-20 (4 days ago) modified.conffile..etc.init.d.apport: [modified] mtime.conffile..etc.init.d.apport: 2024-04-19T01:50:32 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2063332 Title: Ubuntu 24.04 Wayland and Qt5 (regression - worked in Ubuntu 22.04) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/2063332/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs