Obsolete Members for QPrinterInfo

以下成员源于类 QPrinterInfo 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共函数

(obsolete) QList<QPrinter::PaperSize> supportedPaperSizes () const
(obsolete) QList<QPair<QString, QSizeF> > supportedSizesWithNames () const

成员函数文档编制

QList < QPrinter::PaperSize > QPrinterInfo:: supportedPaperSizes () const

Returns a list of supported paper sizes by the printer.

Not all printer drivers support this query, so the list may be empty.

该函数在 Qt 4.4 引入。

QList < QPair < QString , QSizeF > > QPrinterInfo:: supportedSizesWithNames () const

Returns a list of all the paper names supported by the driver with the corresponding size in millimeters.

Not all printer drivers support this query, so the list may be empty.

该函数在 Qt 5.1 引入。