Objective-C// qcocoasystemtrayicon.mm Qt 5.10.1if (mouseButton == Qt::MidButton) emit systray->activated(QPlatformSystemTrayIcon::MiddleClick);else emit systray->activated(QPlatformSystemTrayIcon::Trigger);
SET(CMAKE_EXE_LINKER_FLAGS "-framework AppKit -w")