diff options
Diffstat (limited to 'doc/src/snippets/code/src_gui_dialogs_qabstractprintdialog.cpp')
-rw-r--r-- | doc/src/snippets/code/src_gui_dialogs_qabstractprintdialog.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/src/snippets/code/src_gui_dialogs_qabstractprintdialog.cpp b/doc/src/snippets/code/src_gui_dialogs_qabstractprintdialog.cpp new file mode 100644 index 0000000..e947bd7 --- /dev/null +++ b/doc/src/snippets/code/src_gui_dialogs_qabstractprintdialog.cpp @@ -0,0 +1,6 @@ +//! [0] +QPrintDialog printDialog(printer, parent); +if (printDialog.exec() == QDialog::Accepted) { + // print ... +} +//! [0] |