이 페이지에서

QCommandLinkButton Class

QCommandLinkButton 위젯은 Vista 스타일의 명령 링크 버튼을 제공합니다. 더 보기...

헤더: #include <QCommandLinkButton>
CMake: find_package(Qt6 REQUIRED COMPONENTS Widgets)
target_link_libraries(mytarget PRIVATE Qt6::Widgets)
qmake: QT += widgets
상속: QPushButton

속성

공개 함수

QCommandLinkButton(QWidget *parent = nullptr)
QCommandLinkButton(const QString &text, QWidget *parent = nullptr)
QCommandLinkButton(const QString &text, const QString &description, QWidget *parent = nullptr)
virtual ~QCommandLinkButton()
QString description() const
void setDescription(const QString &description)

재구현된 공용 함수

virtual int heightForWidth(int width) const override
virtual QSize minimumSizeHint() const override
virtual QSize sizeHint() const override

재구현된 보호 함수

virtual bool event(QEvent *e) override
virtual void paintEvent(QPaintEvent *) override

상세 설명

명령 링크는 Windows Vista에서 도입된 새로운 컨트롤입니다. 이 컨트롤의 용도는 상호 배타적인 옵션 집합 중에서 하나를 선택하는 데 사용된다는 점에서 라디오 버튼과 유사합니다. 명령 링크 버튼은 단독으로 사용해서는 안 되며, 마법사나 대화 상자에서 라디오 버튼의 대안으로 사용되어야 하며, 이를 통해 "다음" 버튼을 누르는 과정이 불필요해집니다. 외관은 일반적으로 평면 푸시 버튼과 비슷하지만, 일반 버튼 텍스트 외에도 설명 텍스트를 추가할 수 있습니다. 또한 기본적으로 화살표 아이콘이 표시되며, 이는 컨트롤을 누르면 다른 창이나 페이지가 열린다는 것을 나타냅니다.

QPushButton 및 QRadioButton도 참조하십시오 .

속성 설명서

description : QString

이 속성은 버튼 텍스트를 보완하는 설명 라벨을 포함합니다.

이 속성을 설정하면 버튼에 설명 텍스트가 표시되어 텍스트 레이블을 보완합니다. 이 텍스트는 일반적으로 기본 텍스트보다 작은 글꼴로 표시됩니다.

액세스 함수:

QString description() const
void setDescription(const QString &description)

flat : bool

이 속성은 버튼이 평면 패널 형태로 표시될지, 아니면 테두리가 있는 형태로 표시될지를 결정합니다.

기본적으로 이 속성은 false로 설정되어 있습니다.

액세스 함수:

bool isFlat() const
void setFlat(bool)

QPushButton::flat도 참조하십시오 .

멤버 함수 설명서

[explicit] QCommandLinkButton::QCommandLinkButton(QWidget *parent = nullptr)

텍스트가 없고 parent 가 포함된 명령 링크를 생성합니다.

[explicit] QCommandLinkButton::QCommandLinkButton(const QString &text, QWidget *parent = nullptr)

parent 를 상위 요소로 하고, “ text ”라는 텍스트를 포함하는 명령 링크를 생성합니다.

[explicit] QCommandLinkButton::QCommandLinkButton(const QString &text, const QString &description, QWidget *parent = nullptr)

text, description 및 parent 를 사용하여 명령 링크를 구성합니다.

[virtual noexcept] QCommandLinkButton::~QCommandLinkButton()

소멸자.

[override virtual protected] bool QCommandLinkButton::event(QEvent *e)

QPushButton::event(QEvent *e)를 재구현합니다.

[override virtual] int QCommandLinkButton::heightForWidth(int width) const

QWidget::heightForWidth(int w) const를 재구현합니다.

[override virtual] QSize QCommandLinkButton::minimumSizeHint() const

QPushButton::minimumSizeHint() const를 재구현합니다.

[override virtual protected] void QCommandLinkButton::paintEvent(QPaintEvent *)

QPushButton::paintEvent(QPaintEvent *)를 재구현합니다.

[override virtual] QSize QCommandLinkButton::sizeHint() const

QPushButton::sizeHint() const를 재구현합니다.

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