Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qpagesetupdialog.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QPAGESETUPDIALOG_H
6#define QPAGESETUPDIALOG_H
7
8#include <QtPrintSupport/qtprintsupportglobal.h>
9
10#include <QtWidgets/qdialog.h>
11
13
14QT_BEGIN_NAMESPACE
15
16class QPrinter;
18
19class Q_PRINTSUPPORT_EXPORT QPageSetupDialog : public QDialog
20{
21 Q_OBJECT
22 Q_DECLARE_PRIVATE(QPageSetupDialog)
23
24public:
25 explicit QPageSetupDialog(QPrinter *printer, QWidget *parent = nullptr);
26 explicit QPageSetupDialog(QWidget *parent = nullptr);
27 ~QPageSetupDialog();
28
29#if defined(Q_OS_MACOS) || defined(Q_OS_WIN) || defined(Q_QDOC)
30 void setVisible(bool visible) override;
31#endif
32 int exec() override;
33
34 using QDialog::open;
35 void open(QObject *receiver, const char *member);
36
37 void done(int result) override;
38
39 QPrinter *printer();
40};
41
42QT_END_NAMESPACE
43
44#endif // QPAGESETUPDIALOG_H
The QPageSetupDialog class provides a configuration dialog for the page-related options on a printer.
QT_REQUIRE_CONFIG(printdialog)