QWaylandXdgOutputV1 Class
コンポジターのディスプレイを表します。詳細...
| ヘッダー | #include <QWaylandXdgOutputV1> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake | QT += waylandcompositor |
| QML で | XdgOutputV1 |
| 継承: | QObject |
プロパティ
|
|
パブリック機能
| QString | description() const |
| QRect | logicalGeometry() const |
| QPoint | logicalPosition() const |
| QSize | logicalSize() const |
| QWaylandXdgOutputManagerV1 * | manager() const |
| QString | name() const |
| QWaylandOutput * | output() const |
| void | setDescription(const QString &name) |
| void | setLogicalPosition(const QPoint &position) |
| void | setLogicalSize(const QSize &size) |
| void | setName(const QString &name) |
シグナル
| void | descriptionChanged() |
| void | logicalGeometryChanged() |
| void | logicalPositionChanged() |
| void | logicalSizeChanged() |
| void | managerChanged() |
| void | nameChanged() |
| void | outputChanged() |
プロパティの説明
description : QString
このプロパティは、この出力の説明を保持する。
説明の規約は定義されていません。
初期化後にこのプロパティを変更しても効果はありません。
アクセス関数
| QString | description() const |
| void | setDescription(const QString &name) |
ノーティファイアシグナル:
| void | descriptionChanged() |
[read-only] logicalGeometry : QRect
このプロパティは、グローバル・コンポジター空間における出力の位置とサイズを保持する。これは論理位置と論理サイズの組み合わせである。
アクセス関数
| QRect | logicalGeometry() const |
Notifier シグナル:
| void | logicalGeometryChanged() |
QWaylandXdgOutputV1::logicalPosition およびQWaylandXdgOutputV1::logicalSizeも参照のこと 。
logicalPosition : QPoint
このプロパティは、グローバル・コンポジター空間内での出力の座標を保持する。
デフォルト値は0,0です。
アクセス関数
| QPoint | logicalPosition() const |
| void | setLogicalPosition(const QPoint &position) |
通知シグナル
| void | logicalPositionChanged() |
logicalSize : QSize
このプロパティは、グローバル・コンポジター空間における出力のサイズを保持する。
デフォルト値は-1,-1で無効です。
これは論理的なサイズであり、物理的なサイズではないことを覚えておいてください。例えば、WaylandOutput モード 3840x2160、スケールファクター 2 の場合:
- サーフェスバッファをスケーリングしないコンポジターは、3840x2160の論理サイズを報告します。
- サーフェスバッファを自動的にスケーリングするコンポジターは、1920x1080の論理サイズを報告します。
- 1.5の分数スケールを使用するコンポジターは、2560x1620の論理サイズを報告する。
アクセス関数
| QSize | logicalSize() const |
| void | setLogicalSize(const QSize &size) |
通知シグナル
| void | logicalSizeChanged() |
name : QString
このプロパティは、この出力の名前を保持する。
命名規則はコンポジターによって定義されますが、英数字とダッシュ("-")に限定されます。各名称は一意であり、同じハードウェアおよびソフトウェア構成のセッション間で一貫性が保たれます。
名前の例としては、"HDMI-A-1"、"WL-1"、"X11-1 "などがあります。ただし、名前が基礎となる技術を反映しているとは思わないでください。
初期化後にこのプロパティを変更しても効果はありません。
アクセス関数
| QString | name() const |
| void | setName(const QString &name) |
ノーティファイア信号:
| void | nameChanged() |
[read-only] output : QWaylandOutput*
このプロパティは、このQWaylandXdgOutputV1 に関連するQWaylandOutput を保持する。
アクセス関数:
| QWaylandOutput * | output() const |
通知シグナル:
| void | outputChanged() |
© 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.