#include "platformsupport.h" #include void PlatformSupport::showSystemTitleBtns(QWindow *window, bool enable) { NSWindow* nswindow = [reinterpret_cast(window->winId()) window]; [nswindow standardWindowButton:NSWindowCloseButton].hidden = (enable ? NO : YES); [nswindow standardWindowButton:NSWindowMiniaturizeButton].hidden = (enable ? NO : YES); [nswindow standardWindowButton:NSWindowZoomButton].hidden = (enable ? NO : YES); }