-
Notifications
You must be signed in to change notification settings - Fork 51
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
base: qt6-support
Are you sure you want to change the base?
Conversation
Otherwise Q_DECLARE_METATYPE can't see the QList type and complains about incomplete type
d7b04e8
to
d120259
Compare
@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) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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.
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