I have a QMainWindow window that shows a countdown for 10 seconds and will shutdown the system with system("sudo shutdown -P");
. Of course I want to disable the "X", Max- and minimizer buttons from the title bar using setWindowFlags()
.
I used this->setWindowFlags(Qt::Window | Qt::CustomSizeWIndowHint | Qt::WindowSystemMenuHint)
but unfortunately it is not working.
I Have already read this, this, this , this and this questions and also I ran the windowflags-example on my system and even this example did not work. I have a Raspberry Pi 2, compile and run my code on Raspbian Jessie using Qt 4.8.
Can anybody help me? thanks in advance!