이 페이지에서

Label QML Type

상속된 글꼴로 스타일이 지정된 텍스트 레이블. 더 보기...

Import Statement: import QtQuick.Controls
Inherits:

Text

속성

상세 설명

레이블은 Text 스타일 및 font 상속으로 확장됩니다. 기본 색상과 글꼴은 스타일별로 다릅니다. 레이블에는 시각적 background 항목이 있을 수도 있습니다.

스타일링이 적용된 텍스트 표시 라벨

Label {
    text: "Label"
}

Text 속성을 사용하여 원하는 대로 텍스트의 모양을 변경할 수 있습니다:

Label {
    text: "Hello world"
    font.pixelSize: 22
    font.italic: true
}

레이블 사용자 지정하기를참조하세요 .

속성 문서

background : Item

이 속성은 배경 항목을 보유합니다.

참고: 배경 항목에 명시적인 크기가 지정되지 않은 경우 자동으로 컨트롤의 크기를 따릅니다. 대부분의 경우 배경 항목의 너비나 높이를 지정할 필요가 없습니다.

레이블 사용자 지정을참조하십시오 .

bottomInset : real [since QtQuick.Controls 2.5 (Qt 5.12)]

이 프로퍼티는 배경의 하단 삽입을 유지합니다.

이 프로퍼티는 QtQuick.Controls 2.5(Qt 5.12)에 도입되었습니다.

Control LayouttopInset참조하십시오 .

implicitBackgroundHeight : real [read-only, since QtQuick.Controls 2.5 (Qt 5.12)]

이 속성은 암시적 배경 높이를 보유합니다.

값은 background ? background.implicitHeight : 0 입니다.

이 프로퍼티는 QtQuick.Controls 2.5(Qt 5.12)에 도입되었습니다.

implicitBackgroundWidth참조하십시오 .

implicitBackgroundWidth : real [read-only, since QtQuick.Controls 2.5 (Qt 5.12)]

이 속성은 암시적 배경 너비를 보유합니다.

값은 background ? background.implicitWidth : 0 입니다.

이 프로퍼티는 QtQuick.Controls 2.5 (Qt 5.12)에 도입되었습니다.

implicitBackgroundHeight참조하십시오 .

leftInset : real [since QtQuick.Controls 2.5 (Qt 5.12)]

이 프로퍼티는 배경의 왼쪽 인셋을 유지합니다.

이 프로퍼티는 QtQuick.Controls 2.5(Qt 5.12)에 도입되었습니다.

Control LayoutrightInset참조하십시오 .

rightInset : real [since QtQuick.Controls 2.5 (Qt 5.12)]

이 프로퍼티는 배경의 오른쪽 삽입을 유지합니다.

이 프로퍼티는 QtQuick.Controls 2.5(Qt 5.12)에 도입되었습니다.

Control LayoutleftInset참조하십시오 .

topInset : real [since QtQuick.Controls 2.5 (Qt 5.12)]

이 프로퍼티는 배경의 상단 인셋을 유지합니다.

이 프로퍼티는 QtQuick.Controls 2.5(Qt 5.12)에 도입되었습니다.

Control LayoutbottomInset참조하십시오 .

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