[Qt-interest] Close button for Dialog box.
Andreas Diehl
Andreas_Diehl at abs.org
Wed May 13 08:14:21 CEST 2009
Hi.
According to the Qt::WindowFlags docu the Qt::Dialog flag should exactly
do what you want, thus try
MyDialog::MyDialog(QWidget* parent) : QDialog(parent,
Qt::Dialog)
for your constructor.
...although I think QDialog-derived classes should have that flag set
per default. Otherwise I guess you must use the other window flags like
Qt::CustomizeWindowHint | Qt::WindowTitleHint |
Qt::WindowSystemMenuHint
without setting the Qt::WindowMinMaxButtonHint.
I have no experience how these window flags do on Mac.
Hope it helps,
Andreas
________________________________
Von: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] Im Auftrag von Manish
Chaturvedi
Gesendet: Mittwoch, 13. Mai 2009 01:53
An: qt-interest at trolltech.com
Betreff: [Qt-interest] Close button for Dialog box.
Hi all,
I am trying to make a dialog box just with a close button in
title bar( without Maximize and minimize button ).
I tried setting windows flag like this
MyDialog::MyDialog(QWidget *parent) :QDialog(parent,
QFlag(..?|?.) to get the desired dialog box. Is there is any way to have
such dialog box with only close button at left top just on title bar.
I am writing this on Mac with Qt version 4.3.4.
Thanks in advance!
Manish
DISCLAIMER ========== This e-mail may contain privileged and
confidential information which is the property of Persistent Systems
Ltd. It is intended only for the use of the individual or entity to
which it is addressed. If you are not the intended recipient, you are
not authorized to read, retain, copy, print, distribute or use this
message. If you have received this communication in error, please notify
the sender and delete all copies of this message. Persistent Systems
Ltd. does not accept any liability for virus infected mails.
--
Mit freundlichen Gru?en
Andreas Diehl
-------------------------- ABS -------------------------
ABS Systemberatung OHG Tel: +49 (0)7053/9290-03
Hauffstr. 9 Fax: +49 (0)7053/9290-
D-75385 Bad Teinach-Zavelstein http://www.abs.org
Registergericht Calw HRA 1031
[mailto:Andreas_Diehl at abs.org]
----- Loesungen fuer den Maschinen- und Anlagenbau -----
More information about the Qt-interest-old
mailing list