https://gitlab.com/desktop-frameworks/wayqt/-/issues/7

--- a/meson.build
+++ b/meson.build
@@ -22,7 +22,7 @@ if get_option('use_qt_version') == 'qt5'
 	QtDeps = dependency(
 		'qt5',
 		modules: [ 'Core', 'Gui', 'WaylandClient', 'XkbCommonSupport' ],
-		private_headers: [ 'Gui', 'WaylandClient', 'XkbCommonSupport' ],
+		private_headers: true,
 	)
 
 	# Nothing
@@ -36,7 +36,7 @@ elif get_option('use_qt_version') == 'qt6'
 	QtDeps = dependency(
 		'qt6',
 		modules: [ 'Core', 'Gui', 'WaylandClient' ],
-		private_headers: [ 'Gui', 'WaylandClient', 'WaylandGlobalPrivate' ],
+		private_headers: true,
 	)
 
 	qmake = find_program( [ 'qmake-qt6', 'qmake6' ], required: true )
