If you donβt need buttons at all with an inscription, you can achieve this by setting a few flag hints :
setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint);
Qt Demo , (Qt Demo- > Widgets- > Flags Window), , .
, "//", , Qt . , Qt, , Windows Close, .
Windows, ():
#if defined(Q_WS_WIN)
HWND hwnd = winId();
LONG_PTR style = GetWindowLongPtr(hwnd, GWL_STYLE);
style &= ~WS_SYSMENU;
SetWindowLongPtr(hwnd, GWL_STYLE, style);
SetWindowPos(hwnd, 0, 0, 0, 0, 0,
SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED);
#endif
: swongu, . "/", , .
source
share