Debian Codegraph @

src/printsupport/doc/snippets/code/src_gui_dialogs_qabstractprintdialog.cpp

raw
1 // Copyright (C) 2016 The Qt Company Ltd.
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4 //! [0]
5 QPrintDialog printDialog(printer, parent);
6 if (printDialog.exec() == QDialog::Accepted) {
7 // print ...
8 }
9 //! [0]