Is it possible to disable close button in QMessageBox? I want to make a question box where only Yes and No will be enabled.
I tried to find out the needed flags with Qt "windowflags" example, the following combination seems to work for the window in that sample application, but it doesn't work with QMessageBox.
Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint | Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::CustomizeWindowHint
Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint | Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::CustomizeWindowHint
To copy to clipboard, switch view to plain text mode
also tried this with the same effect:
setWindowFlags(Qt::FramelessWindowHint);
setWindowFlags(Qt::WindowTitleHint);
setWindowFlags(Qt::FramelessWindowHint);
setWindowFlags(Qt::WindowTitleHint);
To copy to clipboard, switch view to plain text mode
Bookmarks