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 |
This namespace was introduced in Qt 5.2.
Functions
QPixmap | fromCGImageRef(CGImageRef image) |
bool | isMainWindow(QWindow *window) |
Detailed Description
Function Documentation
QPixmap QtMac::fromCGImageRef(CGImageRef image)
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.
bool QtMac::isMainWindow(QWindow *window)
Returns whether the given QWindow window is the application's main window