Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4#ifndef QPAGESETUPDIALOG_H
5#define QPAGESETUPDIALOG_H
6
7#include <QtPrintSupport/qtprintsupportglobal.h>
8
9#include <QtWidgets/qdialog.h>
10
11QT_REQUIRE_CONFIG(printdialog);
12
14
15class QPrinter;
17
18class Q_PRINTSUPPORT_EXPORT QPageSetupDialog : public QDialog
19{
21 Q_DECLARE_PRIVATE(QPageSetupDialog)
22
23public:
24 explicit QPageSetupDialog(QPrinter *printer, QWidget *parent = nullptr);
25 explicit QPageSetupDialog(QWidget *parent = nullptr);
27
28#if defined(Q_OS_MAC) || defined(Q_OS_WIN) || defined(Q_QDOC)
29 void setVisible(bool visible) override;
30#endif
31 int exec() override;
32
33 using QDialog::open;
34 void open(QObject *receiver, const char *member);
35
36 void done(int result) override;
37
38 QPrinter *printer();
39};
40
42
43#endif // QPAGESETUPDIALOG_H
The QDialog class is the base class of dialog windows.
Definition qdialog.h:19
virtual void open()
Definition qdialog.cpp:503
\inmodule QtCore
Definition qobject.h:103
The QPageSetupDialog class provides a configuration dialog for the page-related options on a printer.
\reentrant
Definition qprinter.h:28
The QWidget class is the base class of all user interface objects.
Definition qwidget.h:99
Combined button and popup list for selecting options.
GLuint64EXT * result
[6]
#define QT_REQUIRE_CONFIG(feature)
#define Q_OBJECT
file open(QIODevice::ReadOnly)
dialog exec()