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
qprintpreviewdialog.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 QPRINTPREVIEWDIALOG_H
5#define QPRINTPREVIEWDIALOG_H
6
7#include <QtPrintSupport/qtprintsupportglobal.h>
8
9#include <QtWidgets/qdialog.h>
10
11QT_REQUIRE_CONFIG(printpreviewdialog);
12
14
15class QGraphicsView;
17class QPrinter;
18
19class Q_PRINTSUPPORT_EXPORT QPrintPreviewDialog : public QDialog
20{
22 Q_DECLARE_PRIVATE(QPrintPreviewDialog)
23
24public:
25 explicit QPrintPreviewDialog(QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags());
26 explicit QPrintPreviewDialog(QPrinter *printer, QWidget *parent = nullptr,
27 Qt::WindowFlags flags = Qt::WindowFlags());
29
30 using QDialog::open;
31 void open(QObject *receiver, const char *member);
32
33 QPrinter *printer();
34
35 void setVisible(bool visible) override;
36 void done(int result) override;
37
39 void paintRequested(QPrinter *printer);
40
41private:
42 Q_PRIVATE_SLOT(d_func(), void _q_fit(QAction *action))
43 Q_PRIVATE_SLOT(d_func(), void _q_zoomIn())
44 Q_PRIVATE_SLOT(d_func(), void _q_zoomOut())
45 Q_PRIVATE_SLOT(d_func(), void _q_navigate(QAction *action))
46 Q_PRIVATE_SLOT(d_func(), void _q_setMode(QAction *action))
47 Q_PRIVATE_SLOT(d_func(), void _q_pageNumEdited())
48 Q_PRIVATE_SLOT(d_func(), void _q_print())
49 Q_PRIVATE_SLOT(d_func(), void _q_pageSetup())
50 Q_PRIVATE_SLOT(d_func(), void _q_previewChanged())
51 Q_PRIVATE_SLOT(d_func(), void _q_zoomFactorChanged())
52};
53
54
56
57#endif // QPRINTPREVIEWDIALOG_H
The QAction class provides an abstraction for user commands that can be added to different user inter...
Definition qaction.h:30
The QDialog class is the base class of dialog windows.
Definition qdialog.h:19
virtual void open()
Definition qdialog.cpp:503
The QGraphicsView class provides a widget for displaying the contents of a QGraphicsScene.
\inmodule QtCore
Definition qobject.h:103
The QPrintPreviewDialog class provides a dialog for previewing and configuring page layouts for print...
void paintRequested(QPrinter *printer)
This signal is emitted when the QPrintPreviewDialog needs to generate a set of preview pages.
\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.
GLbitfield flags
GLuint64EXT * result
[6]
#define QT_REQUIRE_CONFIG(feature)
#define Q_OBJECT
#define Q_PRIVATE_SLOT(d, signature)
#define Q_SIGNALS
file open(QIODevice::ReadOnly)