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 페이지 설정 대화 상자에 표시되지 않습니다.

QPrinterQPrintDialog참조하세요 .

멤버 함수 문서

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

기본으로 구성된 QPrinterparent 부모 위젯으로 구성하는 페이지 설정 대화 상자를 만듭니다.

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() 신호를 receivermember 에 지정된 슬롯에 연결합니다.

대화 상자가 닫히면 신호가 슬롯에서 연결이 끊어집니다.

QPrinter *QPageSetupDialog::printer()

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

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

다시 구현합니다: QDialog::setVisible(bool 표시).

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