How can i remove the close button i.e X present at the top right corner from my Dialog form?
How can i remove the close button i.e X present at the top right corner from my Dialog form?
From within Designer? You can't. You need to pass appropriate window flags to QWidget's constructor to do that.
I am running "Kubuntu", a KDE desktop,
In the "System Settings>Look and Feel>Appearance>Window Decorations>button" you can drag the dastardly "X" to the left end of the title bar where it belongs.
I can't do this in "gnome" therfor i don't even think of using it!!!
Hope this helps
Hi,
I have created my screens using the QT Designer. I want to disable the "X" ( close button) present at the right top corner. How can i do that??
should i paas these flags from the init function??
what exactly do i need to do?
As I said in my previous post, if you are using a KDE desktop, which I assume you are if you are using "designer" you can drag the "X" to the left end of the title bar byIf you set this before using "designer" it will there in "designer", also in "Kdevelop" for that matter, or any other programs you run in the "KDE""System Settings>Look and Feel>Appearance>Window Decorations>button"
desktop.
If you want it to be embedded in your program itself, mysota will have to answer that.
Bookmarks