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