Obsolete Members for QPagedPaintDevice

以下成員源於類 QPagedPaintDevice 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

公共函數

(obsolete) QPagedPaintDevice ()
(obsolete) QPagedPaintDevice::Margins margins () const
(obsolete) QSizeF pageSizeMM () const
(obsolete) virtual void setMargins (const QPagedPaintDevice::Margins & margins )
(obsolete) virtual void setPageSizeMM (const QSizeF & size )

成員函數文檔編製

QPagedPaintDevice:: QPagedPaintDevice ()

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

構造新的分頁描繪設備。

QPagedPaintDevice::Margins QPagedPaintDevice:: margins () const

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

使用 pageLayout ().margins() instead. Returns the current margins of the paint device. The default is 0.

邊距以毫米為單位指定。

另請參閱 setMargins ().

QSizeF QPagedPaintDevice:: pageSizeMM () const

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

使用 pageLayout (). pageSize () 代替。

返迴頁麵尺寸 (以毫米為單位)。

另請參閱 setPageSizeMM ().

[虛擬] void QPagedPaintDevice:: setMargins (const QPagedPaintDevice::Margins & margins )

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

使用 setPageMargins ( QMarginsF , QPageLayout::Unit ) instead. Sets the margins to be used to margins .

邊距以毫米為單位指定。

The margins are purely a hint to the drawing method. They don't affect the coordinate system or clipping.

另請參閱 margins ().

[虛擬] void QPagedPaintDevice:: setPageSizeMM (const QSizeF & size )

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

使用 setPageSize ( QPageSize ) instead. Sets the page size to size . size is specified in millimeters.

If the size matches a standard QPagedPaintDevice::PageSize then that page size will be used, otherwise QPagedPaintDevice::Custom will be set.

另請參閱 pageSizeMM ().