IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QPageSetupDialog Class

The QPageSetupDialog class provides a configuration dialog for the page-related options on a printer.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QPageSetupDialog Class

  • Header: QPageSetupDialog

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS PrintSupport)

    target_link_libraries(mytarget PRIVATE Qt6::PrintSupport)

  • qmake: QT += printsupport

  • Inherits: QDialog

  • Group: QPageSetupDialog is part of standard-dialogs, Printer and Printing APIs

Detailed Description

On Windows and macOS the page setup dialog is implemented using the native page setup dialogs.

Note that on Windows and macOS custom paper sizes won't be reflected in the native page setup dialogs. Additionally, custom page margins set on a QPrinter won't show in the native macOS page setup dialog.

See Also

Member Function Documentation

 

[explicit] QPageSetupDialog::QPageSetupDialog(QPrinter *printer, QWidget *parent = nullptr)

Constructs a page setup dialog that configures printer with parent as the parent widget.

[explicit] QPageSetupDialog::QPageSetupDialog(QWidget *parent = nullptr)

Constructs a page setup dialog that configures a default-constructed QPrinter with parent as the parent widget.

See Also

See also printer()

[virtual] QPageSetupDialog::~QPageSetupDialog()

Destroys the page setup dialog.

[override virtual] void QPageSetupDialog::done(int result)

Reimplements: QDialog::done(int r).

[override virtual] int QPageSetupDialog::exec()

Reimplements: QDialog::exec().

This virtual function is called to pop up the dialog. It must be reimplemented in subclasses.

void QPageSetupDialog::open(QObject *receiver, const char *member)

This is an overloaded function.

Opens the dialog and connects its accepted() signal to the slot specified by receiver and member.

The signal will be disconnected from the slot when the dialog is closed.

QPrinter *QPageSetupDialog::printer()

Returns the printer that was passed to the QPageSetupDialog constructor.

[override virtual] void QPageSetupDialog::setVisible(bool visible)

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+