Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional fixes for Qt6 support #122

Open
wants to merge 3 commits into
base: qt6-support
Choose a base branch
from

Conversation

Lorac
Copy link

@Lorac Lorac commented Jun 11, 2024

We are in the process of integrating maliit-keyboard into our custom distro with KDE (plasma-mobile), which only supports Qt6 with the KWin compositor.

These are the patches that I had to make so that the keyboard would appear when using a QML input item.

I'm unsure about the changes applied to QWaylandInputPanelShellIntegration, mainly the inheritance with zwp_text_input_manager_v1. I couldn't find something better suited unless you want to write something custom.

I mainly followed the Qt6 example shell https://doc.qt.io/qt-6/qtwaylandcompositor-custom-shell-example.html

@Lorac Lorac force-pushed the qt6-patches-wayland branch from d7b04e8 to d120259 Compare June 17, 2024 03:19
@KAMiKAZOW
Copy link
Member

@aberaud Merge?

@@ -54,7 +56,7 @@ if(enable-wayland)
if (Qt6_FOUND)
find_package(Qt6 REQUIRED COMPONENTS WaylandClient WaylandGlobalPrivate)
else()
find_package(Qt5 5.14 REQUIRED COMPONENTS WaylandClient XkbCommonSupport)
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS WaylandClient XkbCommonSupport)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes in this file seem unnecessary? The define for the Qt6 case is not used anywhere, and the Qt5 one is only used here, where there won't be any newer minor releases.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dropped this whole diff to CMakeLists.txt to get this PR applying on top of #125 and everything builds on my end anyway.

@@ -16,6 +16,7 @@

#include <QMetaType>
#include <QSharedPointer>
#include <QList>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this needed exactly?

Copy link

@JamiKettunen JamiKettunen Dec 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both framework/keyboard still compile fine without it on Qt 6.8.1 for me without any related warnings with LLVM/Clang 19.1.6 so seems unneeded.

class QWaylandInputPanelShellIntegration
: public QWaylandShellIntegrationTemplate<
QWaylandInputPanelShellIntegration>,
public QtWayland::zwp_text_input_manager_v1 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain all of these changes in the input panel shell plugin? It's not clear to me why any of these changes are necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants