summaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-07-24 10:10:21 (GMT)
committerRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-07-24 12:54:06 (GMT)
commit42c8c59a7be5e1906de09b6a007b868c897ab9e1 (patch)
tree5dc9b43fb2a7c4672c3c691b7880ca626e3176d6 /doc/src
parentf90aba898074dbd1edc07112b63b8816bbc5855c (diff)
downloadQt-42c8c59a7be5e1906de09b6a007b868c897ab9e1.zip
Qt-42c8c59a7be5e1906de09b6a007b868c897ab9e1.tar.gz
Qt-42c8c59a7be5e1906de09b6a007b868c897ab9e1.tar.bz2
Prematurely creating a dialog as a sheet causes problems
Prematurely creating a dialog as a sheet and then calling exec() on it will show a window w/o decorations. The problem is that first telling a window to be a sheet, and then tell it to exec, is unambigious. Because doing the latter implies application modality (when modality is not set), which again implies not using a sheet. Calling exec (and setting modality) will win over window flags, so in this case, we now recreate the window as a normal app-modal dialog. Task: 254524 Reviewed-by: Trenton Schulz
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/qnamespace.qdoc5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/src/qnamespace.qdoc b/doc/src/qnamespace.qdoc
index ca5c981..5858b4b 100644
--- a/doc/src/qnamespace.qdoc
+++ b/doc/src/qnamespace.qdoc
@@ -1861,7 +1861,10 @@
We refer to a top-level window that has a parent
as a \e secondary window.
- \value Sheet Indicates that the widget is a Macintosh sheet.
+ \value Sheet Indicates that the window is a Macintosh sheet. Since
+ using a sheet implies window modality, the recommended
+ way is to use QWidget::setWindowModality(), or
+ QDialog::open(), instead.
\value Drawer Indicates that the widget is a Macintosh drawer.