I didn't manage to do it by using the Qt window flags, but it is possible using winapi:
Qt Code:
#ifdef Q_WS_WIN CMenu* menu = this->GetSystemMenu(FALSE); menu->ModifyMenu(SC_CLOSE, MF_BYCOMMAND | MF_GRAYED ); #endifTo copy to clipboard, switch view to plain text mode
Bookmarks