The QtMac namespace contains miscellaneous functionality specific to the macOS and iOS operating systems. More...
Header: | #include <QtMac> |
qmake: | QT += macextras |
Since: | Qt 5.2 |
This namespace was introduced in Qt 5.2.
int | applicationIconBadgeNumber() |
CGContextRef | currentCGContext() |
QPixmap | fromCGImageRef(CGImageRef image) |
void | setApplicationIconBadgeNumber(int number) |
CGImageRef | toCGImageRef(const QPixmap &pixmap) |
Returns the value of the application icon a.k.a badge.
See also setApplicationIconBadgeNumber() and badgeLabelText().
Returns the current CoreGraphics context.
Returns a QPixmap that is equivalent to the given image.
This function is not available in Qt 5.x until 5.0.2 and will return a null pixmap in earlier versions.
See also toCGImageRef() and Pixmap Conversion.
Sets the value shown on the application icon a.k.a badge to number.
Unlike its macOS counterpart, only numbers can be used.
See also applicationIconBadgeNumber() and setBadgeLabelText().
Creates a CGImageRef
equivalent to the QPixmap pixmap. Returns the CGImageRef
handle.
It is the caller's responsibility to release the CGImageRef
data after use.
This function is not available in Qt 5.x until 5.0.2 and will return NULL in earlier versions.
See also fromCGImageRef().
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.15/qtmac.html