You can check if QtMacExtras provides someting for that http://doc.qt.io/qt-5/qtmacextras-index.html

Cheers,
_