[Qt-interest] QProgressDialog and Cancel and Window Flags

John Weeks john at wavemetrics.com
Thu Feb 10 18:24:38 CET 2011


On Feb 10, 2011, at 1:51 AM, <Oliver.Knoll at comit.ch> <Oliver.Knoll at comit.ch> wrote:

> There exists a Qt::WindowCloseButtonHint with which you can *request* a close button, but I don't see any flag with which you could explicitly request *not* to have a close button.

My recollection is that Qt::CustomizeWindowHint turns *off* the default buttons, and then you can add back the ones you want by adding flags. So the usual window would correspond to something like

Qt::CustomizeWindowHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint | possibly other flags as well...

and once you have Qt::CustomizeWindowHint you can leave out other flags to achieve what you want. The Qt::CustomizeWindowHint may work best on QMdiSubwindow widgets, these are drawn by Qt. Other top-level windows are OS windows and the flags depend on what's possible for Qt to ask for from the OS.

Regards,
John Weeks

WaveMetrics, Inc.
Phone (503) 620-3001
Fax   (503) 620-6754
email   support at WaveMetrics.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110210/ed4632ce/attachment.html 


More information about the Qt-interest-old mailing list