本页内容

IdleInhibitManagerV1 QML Type

提供了一个扩展,可用于禁用合成器的空闲行为。更多内容...

Import Statement: import QtWayland.Compositor
In C++: QWaylandIdleInhibitManagerV1

详细说明

IdleInhibitManagerV1 扩展为客户端提供了一种机制,当某个特定的显示区域对用户具有视觉相关性时,可抑制合成器的空闲行为。

IdleInhibitManagerV1 对应于 Wayland 接口zwp_idle_inhibit_manager_v1 。

要在合成器中实现该扩展的功能,请创建 IdleInhibitManagerV1 组件的实例,并将其添加到合成器支持的扩展列表中:

import QtWayland.Compositor

WaylandCompositor {
    IdleInhibitManagerV1 {
        // ...
    }
}

被禁用的表面其WaylandSurface::inhibitsIdle 属性应设置为true 。

另请参阅 WaylandSurface::inhibitsIdle 。

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