WindowContainer QML Type

임의의 QWindows를 Qt Quick 장면에 임베드할 수 있습니다. 더 보기...

Import Statement: import QtQuick
Since: Qt 6.8
Inherits:

Item

속성

상세 설명

창은 항목의 위치, 크기, 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

이 속성은 임베드할 창을 보유합니다.


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