QtMac Namespace

The QtMac namespace contains miscellaneous functionality specific to the OS X operating system. More...

Header: #include <QtMac>
qmake: QT += macextras
Since: Qt 5.2

Functions

int applicationIconBadgeNumber()
QString badgeLabelText()
CGContextRef currentCGContext()
QPixmap fromCGImageRef(CGImageRef image)
bool isMainWindow(QWindow * window)
void setApplicationIconBadgeNumber(int number)
void setBadgeLabelText(const QString & text)
CGImageRef toCGImageRef(const QPixmap & pixmap)
NSImage * toNSImage(const QPixmap & pixmap)

Detailed Description

The QtMac namespace contains miscellaneous functionality specific to the OS X operating system.

Function Documentation

int QtMac::​applicationIconBadgeNumber()

See also setApplicationIconBadgeNumber().

QString QtMac::​badgeLabelText()

See also setBadgeLabelText().

CGContextRef QtMac::​currentCGContext()

QPixmap QtMac::​fromCGImageRef(CGImageRef image)

bool QtMac::​isMainWindow(QWindow * window)

void QtMac::​setApplicationIconBadgeNumber(int number)

See also applicationIconBadgeNumber().

void QtMac::​setBadgeLabelText(const QString & text)

See also badgeLabelText().

CGImageRef QtMac::​toCGImageRef(const QPixmap & pixmap)

NSImage * QtMac::​toNSImage(const QPixmap & pixmap)

© 2015 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.