移植到 Qt 6 - Qt 6Qt Wayland Compositor

Qt 6 是我们努力使框架更高效、更易用的结果。

我们努力在每个版本中保持所有公共 API 的二进制和源代码兼容性。但为了使 Qt 成为一个更好的框架,有些改动是不可避免的。

在本主题中,我们总结了Qt Wayland Compositor 中的这些变化,并提供了处理这些变化的指导。

外壳类的导入

在 Qt 5 中,通过Qt Wayland Compositor 命名空间提供了一些辅助类。为了改进这些类与合成器主要功能的逻辑分离,在 Qt 6 中它们被移到了单独的导入中。

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

© 2025 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.