本页内容

移植到 Qt 6 -Qt Wayland Compositor

Qt 6 是为了使框架更高效、更易于使用而进行的有意识努力的结果。

我们力求在每个版本中保持所有公共 API 的二进制兼容性和源代码兼容性。但在努力使 Qt 成为更优秀的框架过程中,某些变更在所难免。

在本主题中,我们将总结Qt Wayland Compositor 中的这些变更,并提供相应的处理指南。

Shell 类的导入

在 Qt 5 中,Qt Wayland Compositor 命名空间中提供了一些辅助类。为了加强这些类与合成器核心功能之间的逻辑分离,在 Qt 6 中已将它们移至单独的导入项中。

  • WlShell 这些类型现可在QtWayland.Compositor.WlShell
  • XdgShell 类型现可在QtWayland.Compositor.XdgShell
  • IviApplication 类型现可在QtWayland.Compositor.IviApplication

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.