Page QML Type
머리글 및 바닥글을 지원하는 스타일이 지정된 페이지 컨트롤. 더 보기...
Import Statement: | import QtQuick.Controls |
Inherits: |
속성
- footer : Item
- header : Item
- implicitFooterHeight : real
(since QtQuick.Controls 2.5 (Qt 5.12))
- implicitFooterWidth : real
(since QtQuick.Controls 2.5 (Qt 5.12))
- implicitHeaderHeight : real
(since QtQuick.Controls 2.5 (Qt 5.12))
- implicitHeaderWidth : real
(since QtQuick.Controls 2.5 (Qt 5.12))
- title : string
상세 설명
페이지는 header 및 footer 항목을 페이지에 편리하게 추가할 수 있는 컨테이너 컨트롤입니다.
페이지의 하위 항목으로 선언된 항목은
- 페이지의 contentItem에 자동으로 부모가 됩니다. 동적으로 생성된 항목은 콘텐츠 항목에 명시적으로 부모를 지정해야 합니다.
- 자동으로 위치나 크기가 조정되지 않습니다.
다음 예제 코드 조각은 페이지별 툴바 머리글과 애플리케이션 전체 탭바 바닥글을 사용하는 방법을 보여줍니다.
import QtQuick.Controls import QtQuick.Layouts ApplicationWindow { visible: true StackView { anchors.fill: parent initialItem: Page { header: ToolBar { // ... } ColumnLayout { anchors.fill: parent // ... } } } footer: TabBar { // ... } }
ApplicationWindow, 컨테이너 컨트롤 및 Qt Quick Controls 의 포커스 관리도참조하세요 .
속성 문서
footer : Item |
이 속성은 페이지 바닥글 항목을 보유합니다. 바닥글 항목은 하단에 위치하며 페이지 너비에 맞게 크기가 조정됩니다. 기본값은 null
입니다.
참고: ToolBar, TabBar 또는 DialogButtonBox 를 페이지 바닥글로 지정하면 해당 ToolBar::position, TabBar::position 또는 DialogButtonBox::position 속성이 자동으로 Footer
로 설정됩니다.
header 및 ApplicationWindow::footer 을참조하세요 .
header : Item |
이 속성은 페이지 헤더 항목을 보유합니다. 헤더 항목은 상단에 위치하며 페이지 너비에 맞게 크기가 조정됩니다. 기본값은 null
입니다.
참고: ToolBar, TabBar 또는 DialogButtonBox 를 페이지 헤더로 할당하면 해당 ToolBar::position, TabBar::position 또는 DialogButtonBox::position 속성이 자동으로 Header
로 설정됩니다.
footer 및 ApplicationWindow::header 을참조하세요 .
implicitFooterHeight : real |
이 속성은 암시적 바닥글 높이를 보유합니다.
값은 footer && footer.visible ? footer.implicitHeight : 0
입니다.
이 속성은 QtQuick.Controls 2.5(Qt 5.12)에서 도입되었습니다.
implicitFooterWidth 와 implicitHeaderHeight 를참조하십시오 .
implicitFooterWidth : real |
이 속성은 암시적 바닥글 너비를 보유합니다.
값은 footer && footer.visible ? footer.implicitWidth : 0
입니다.
이 프로퍼티는 QtQuick.Controls 2.5 (Qt 5.12)에 도입되었습니다.
implicitFooterHeight 와 implicitHeaderWidth 를참조하십시오 .
implicitHeaderHeight : real |
이 속성은 암시적 헤더 높이를 보유합니다.
값은 header && header.visible ? header.implicitHeight : 0
입니다.
이 프로퍼티는 QtQuick.Controls 2.5 (Qt 5.12)에 도입되었습니다.
implicitHeaderWidth 와 implicitFooterHeight 를참조하십시오 .
implicitHeaderWidth : real |
이 속성은 암시적 헤더 너비를 보유합니다.
값은 header && header.visible ? header.implicitWidth : 0
입니다.
이 프로퍼티는 QtQuick.Controls 2.5 (Qt 5.12)에 도입되었습니다.
implicitHeaderHeight 와 implicitFooterWidth 를참조하십시오 .
title : string |
이 속성은 페이지 제목을 보유합니다.
제목은 사용자에게 보고 있는 페이지에 대한 컨텍스트를 제공하기 위해 페이지 상단에 표시되는 경우가 많습니다.
페이지는 제목 자체를 렌더링하지 않고 대신 애플리케이션에 의존하여 렌더링합니다. 예를 들어
ApplicationWindow { visible: true width: 400 height: 400 header: Label { text: view.currentItem.title horizontalAlignment: Text.AlignHCenter } SwipeView { id: view anchors.fill: parent Page { title: qsTr("Home") } Page { title: qsTr("Discover") } Page { title: qsTr("Activity") } } }
© 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.