以下成員源於類 QtMac 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(obsolete)
int
|
applicationIconBadgeNumber () |
(obsolete)
QString
|
badgeLabelText () |
(obsolete)
CGContextRef
|
currentCGContext () |
(obsolete)
QPixmap
|
fromCGImageRef (CGImageRef image ) |
(obsolete)
QByteArray
|
fromNSData (const NSData * data ) |
(obsolete)
bool
|
isMainWindow (QWindow * window ) |
(obsolete)
void
|
setApplicationIconBadgeNumber (int number ) |
(obsolete)
void
|
setBadgeLabelText (const QString & text ) |
(obsolete)
CGImageRef
|
toCGImageRef (const QPixmap & pixmap ) |
(obsolete)
NSData *
|
toNSData (const QByteArray & data ) |
(obsolete)
NSImage *
|
toNSImage (const QPixmap & pixmap ) |
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
使用
UIApplication.sharedApplication.applicationIconBadgeNumber
代替。
Returns the value of the application icon a.k.a badge.
另請參閱 setApplicationIconBadgeNumber () 和 badgeLabelText ().
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
使用
NSApp.dockTile.badgeLabel
代替。
Returns the text of the application icon a.k.a badge.
另請參閱 setBadgeLabelText ().
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
使用
UIGraphicsGetCurrentContext()
or
NSGraphicsContext.currentContext.CGContext
代替。
Returns the current CoreGraphics context.
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
返迴 QPixmap 相當於給定 image .
This function is not available in Qt 5.x until 5.0.2 and will return a null pixmap in earlier versions.
另請參閱 toCGImageRef () 和 像素圖轉換 .
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
使用 QByteArray::fromNSData () 代替。
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
使用 QWindow::winId () and view.window.isMainWindow instead.
Returns whether the given QWindow window is the application's main window
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
使用
UIApplication.sharedApplication.applicationIconBadgeNumber
代替。
Sets the value shown on the application icon a.k.a badge to number .
Unlike its macOS counterpart, only numbers can be used.
另請參閱 applicationIconBadgeNumber () 和 setBadgeLabelText ().
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
使用
NSApp.dockTile.badgeLabel
代替。
設置 text shown on the application icon a.k.a badge.
This is generally used with numbers (e.g. number of unread emails); it can also show a string.
另請參閱 badgeLabelText ().
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
使用 QPixmap::toImage () 和 QImage::toCGImage () 代替。
創建
CGImageRef
equivalent to the
QPixmap
pixmap
。返迴
CGImageRef
句柄。
It is the caller's responsibility to release the
CGImageRef
數據在使用後。
This function is not available in Qt 5.x until 5.0.2 and will return NULL in earlier versions.
另請參閱 fromCGImageRef ().
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
使用 QByteArray::toNSData () 代替。
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
使用 QPixmap::toImage and QImage::toCGImage 代替。
創建
NSImage
equivalent to the
QPixmap
pixmap
。返迴
NSImage
句柄。
It is the caller's responsibility to release the
NSImage
數據在使用後。