QtMac Namespace
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 |
Functions
int | applicationIconBadgeNumber() |
QString | badgeLabelText() |
CGContextRef | currentCGContext() |
QPixmap | fromCGImageRef(CGImageRef image) |
QByteArray | fromNSData(const NSData *data) |
bool | isMainWindow(QWindow *window) |
void | setApplicationIconBadgeNumber(int number) |
void | setBadgeLabelText(const QString &text) |
CGImageRef | toCGImageRef(const QPixmap &pixmap) |
NSData * | toNSData(const QByteArray &data) |
NSImage * | toNSImage(const QPixmap &pixmap) |
Detailed Description
The QtMac namespace contains miscellaneous functionality specific to the macOS and iOS operating systems.
Function Documentation
int QtMac::applicationIconBadgeNumber()
See also setApplicationIconBadgeNumber().
QString QtMac::badgeLabelText()
See also setBadgeLabelText().
CGContextRef QtMac::currentCGContext()
QPixmap QtMac::fromCGImageRef(CGImageRef image)
QByteArray QtMac::fromNSData(const NSData *data)
bool QtMac::isMainWindow(QWindow *window)
void QtMac::setApplicationIconBadgeNumber(int number)
See also applicationIconBadgeNumber().
void QtMac::setBadgeLabelText(const QString &text)
See also badgeLabelText().