이 페이지에서

QPageSetupDialog Class

QPageSetupDialog 클래스는 프린터의 페이지 관련 옵션을 설정할 수 있는 구성 대화 상자를 제공합니다. 더 보기...

헤더: #include <QPageSetupDialog>
CMake: find_package(Qt6 REQUIRED COMPONENTS PrintSupport)
target_link_libraries(mytarget PRIVATE Qt6::PrintSupport)
qmake: QT += printsupport
상속: QDialog

공개 함수

QPageSetupDialog(QWidget *parent = nullptr)
QPageSetupDialog(QPrinter *printer, QWidget *parent = nullptr)
virtual ~QPageSetupDialog()
void open(QObject *receiver, const char *member)
QPrinter *printer()

재구현된 공용 함수

virtual void done(int result) override
virtual int exec() override
virtual void setVisible(bool visible) override

상세 설명

Windows 및 macOS에서는 페이지 설정 대화 상자가 네이티브 페이지 설정 대화 상자를 사용하여 구현됩니다.

Windows 및 macOS에서는 사용자 지정 용지 크기가 기본 페이지 설정 대화 상자에 반영되지 않는다는 점에 유의하십시오. 또한, QPrinter 에서 설정된 사용자 지정 페이지 여백은 macOS의 기본 페이지 설정 대화 상자에 표시되지 않습니다.

QPrinter 및 QPrintDialog도 참조하십시오 .

멤버 함수 문서

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

기본적으로 생성된 ` QPrinter `을 ` parent `을 부모 위젯으로 설정하여 구성하는 페이지 설정 대화 상자를 생성합니다.

printer()도 참조하십시오 .

[explicit] QPageSetupDialog::QPageSetupDialog(QPrinter *printer, QWidget *parent = nullptr)

printer 을 구성하는 페이지 설정 대화 상자를 생성하며, 이 대화 상자의 상위 위젯은 parent 입니다.

[virtual noexcept] QPageSetupDialog::~QPageSetupDialog()

페이지 설정 대화 상자를 닫습니다.

[override virtual] void QPageSetupDialog::done(int result)

QDialog::done(int r)을 재구현합니다.

[override virtual] int QPageSetupDialog::exec()

QDialog::exec()를 재구현합니다.

이 가상 함수는 대화 상자를 표시하기 위해 호출됩니다. 하위 클래스에서 반드시 재구현해야 합니다.

void QPageSetupDialog::open(QObject *receiver, const char *member)

대화 상자를 열고, 해당 대화 상자의 ` accepted()` 신호를 ` receiver ` 및 ` member`로 지정된 슬롯에 연결합니다.

대화 상자가 닫히면 해당 신호는 슬롯에서 분리됩니다.

QPrinter *QPageSetupDialog::printer()

QPageSetupDialog 생성자에 전달된 프린터를 반환합니다.

[override virtual] void QPageSetupDialog::setVisible(bool visible)

QDialog::setVisible(bool visible)를 재구현합니다.

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