To set the window flags I use setWindowFlags(/* flags */)
function.
How can I remove a only one window flag?
Is this possible?
Use the binary negation flag ~
unsigned int flags = flags();
flags = flags & (~FlagEnum);
So, to remove a customization window hint: -
flags = flags & (~Qt::CustomizeWindowHint);
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