• PySide 模块
  • PySide.QtGui
  • 内容表

    上一话题

    QAbstractPageSetupDialog

    下一话题

    QFileDialog

    QPageSetupDialog

    概要

    函数

    详细描述

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

    On Windows and Mac OS X the page setup dialog is implemented using the native page setup dialogs.

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

    In Symbian, there is no support for printing. Hence, this dialog should not be used in Symbian.

    class PySide.QtGui. QPageSetupDialog ( printer [ , parent=None ] )
    class PySide.QtGui. QPageSetupDialog ( [ parent=None ] )
    参数:

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

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

    PySide.QtGui.QPageSetupDialog. PageSetupDialogOption

    Used to specify options to the page setup dialog

    该值从 Qt 4.5 起已过时且什么都不做:

    常量 描述
    QPageSetupDialog.DontUseSheet In previous versions of QDialog.exec() the page setup dialog would create a sheet by default if the dialog was given a parent. This is no longer supported from Qt 4.5. If you want to use sheets, use QPageSetupDialog.open() 代替。
    PySide.QtGui.QPageSetupDialog. addEnabledOption ( option )
    参数: option PySide.QtGui.QPageSetupDialog.PageSetupDialogOption

    Use setOption( option , true) 代替。

    PySide.QtGui.QPageSetupDialog. enabledOptions ( )
    返回类型: PySide.QtGui.QPageSetupDialog.PageSetupDialogOptions

    使用 PySide.QtGui.QPageSetupDialog.options() 代替。

    PySide.QtGui.QPageSetupDialog. isOptionEnabled ( option )
    参数: option PySide.QtGui.QPageSetupDialog.PageSetupDialogOption
    返回类型: PySide.QtCore.bool

    Use testOption( option ) 取而代之。

    PySide.QtGui.QPageSetupDialog. open ( receiver , member )
    参数:

    这是重载函数。

    打开对话框并连接其 PySide.QtGui.QDialog.accepted() signal to the slot specified by receiver and member .

    信号将断开槽连接,当对话框被关闭时。

    PySide.QtGui.QPageSetupDialog. options ( )
    返回类型: PySide.QtGui.QPageSetupDialog.PageSetupDialogOptions

    This property holds the various options that affect the look and feel of the dialog.

    默认情况下,所有选项是被禁用的。

    Options should be set before showing the dialog. Setting them while the dialog is visible is not guaranteed to have an immediate effect on the dialog (depending on the option and on the platform).

    PySide.QtGui.QPageSetupDialog. setEnabledOptions ( options )
    参数: options PySide.QtGui.QPageSetupDialog.PageSetupDialogOptions
    PySide.QtGui.QPageSetupDialog. setOption ( option [ , on=true ] )
    参数:

    设置给定 option to be enabled if on is true; otherwise, clears the given option .

    PySide.QtGui.QPageSetupDialog. setOptions ( options )
    参数: options PySide.QtGui.QPageSetupDialog.PageSetupDialogOptions

    This property holds the various options that affect the look and feel of the dialog.

    默认情况下,所有选项是被禁用的。

    Options should be set before showing the dialog. Setting them while the dialog is visible is not guaranteed to have an immediate effect on the dialog (depending on the option and on the platform).

    PySide.QtGui.QPageSetupDialog. testOption ( option )
    参数: option PySide.QtGui.QPageSetupDialog.PageSetupDialogOption
    返回类型: PySide.QtCore.bool

    Returns true if the given option 被启用;否则,返回 false。