Obsolete Members for QBitmap

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

公共函數

(deprecated in 6.0) QBitmap (const QPixmap & pixmap )
(deprecated in 6.0) QBitmap & operator= (const QPixmap & pixmap )

成員函數文檔編製

[explicit, deprecated in 6.0] QBitmap:: QBitmap (const QPixmap & pixmap )

This function is deprecated since 6.0. We strongly advise against using it in new code.

使用 fromPixmap instead. Constructs a bitmap that is a copy of the given pixmap .

若像素圖深度大於 1,則結果位圖會自動抖動。

另請參閱 QPixmap::depth (), fromImage (),和 fromData ().

[deprecated in 6.0] QBitmap &QBitmap:: operator= (const QPixmap & pixmap )

This function is deprecated since 6.0. We strongly advise against using it in new code.

使用 fromPixmap 代替。

賦值給定 pixmap 到此位圖並返迴此位圖的引用。

若像素圖深度大於 1,則結果位圖會自動抖動。

另請參閱 QPixmap::depth ().