WindowContainer QML Type
Qt Quick 씬에 임의의 QWindow를 삽입할 수 있습니다. 더 보기...
| Import Statement: | import QtQuick |
| Since: | Qt 6.8 |
| Inherits: |
속성
- window : QWindow
상세 설명
이 창은 해당 아이템의 창 자식 요소가 되며, 위치, 크기, Z 순서 등은 해당 아이템에 의해 관리됩니다.
창 컨테이너보다 Z 순위가 높은 동급 항목들은 창이 ‘ Qt Quick ’ 장면의 최상단에 위치하기 때문에, 삽입된 창과 자동으로 겹치지 않습니다. 이 문제를 해결하려면 동급 항목들을 각각 전용 자식 창 안에 배치하십시오:
Item {
id: someItem
WindowContainer {
window: foreignWindow
}
WindowContainer {
window: Window {
Item {
id: siblingItem
}
}
}
}마찬가지로, 창 컨테이너의 자식 항목들도 삽입된 창과 자동으로 겹치지 않습니다. 이를 해결하려면 자식 항목을 전용 자식 창 안에 배치하십시오.
Item {
id: someItem
WindowContainer {
id: windowContainer
window: foreignWindow
WindowContainer {
window: Window {
Item {
id: childItem
}
}
}
}
}참고: 창컨테이너는 ` QQuickWidget`, ` QQuickWindow::setRenderTarget()`, ` QQuickRenderControl` 또는 이와 유사한 기능과 상호 운용되지 않습니다.
parent()도 참조하십시오 .
속성 설명서
window : QWindow
이 속성은 삽입할 창을 포함합니다.
© 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.