Qt Mac Extras provide classes and functions that enable you to use miscellaneous functionality specific to the macOS and iOS operating systems.
To include the definitions of the module's classes and functions, use the following include statement:
#include <QtMacExtras>
要链接到模块,添加此行到 qmake .pro 文件:
QT += macextras