Is it possible to disable/delete the QDialogs default close button at the upper left of the dialog?
At least in (embedded) Linux, you can do this:
setWindowFlags(Qt::Window | Qt::WindowTitleHint | Qt::CustomizeWindowHint);
With that, I get a window which has the title but no buttons.
Clearing WindowCloseButtonHint
in WindowFlags
may do what you want. Check out the example here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With