This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Is it possible to have KDialog with X button only?

Tags: None
(comma "," separated)
rshah
Registered Member
Posts
13
Karma
0
OS
Hi i want to have my app dialog to have X button only (no min and max button).
I'm utilizing ui file to create dialog content, the ui file top widget is QWidget.

I have tried this
Code: Select all
setWindowFlags(Qt::Dialog | Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint);


But i still have min,max and x button at my dialog.

I'm using kde sc 4.4 and qt 4.6.2.

Thanks
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Setting minimumSize() and maximumSize() to be the same might do this.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
rshah
Registered Member
Posts
13
Karma
0
OS
bcooksley wrote:Setting minimumSize() and maximumSize() to be the same might do this.


Thanks. It works


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]