summaryrefslogtreecommitdiffstats
path: root/src/corelib/global
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/global')
-rw-r--r--src/corelib/global/qnamespace.qdoc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/global/qnamespace.qdoc b/src/corelib/global/qnamespace.qdoc
index 0d9cacdb1f..b6ce9e03fd 100644
--- a/src/corelib/global/qnamespace.qdoc
+++ b/src/corelib/global/qnamespace.qdoc
@@ -2504,6 +2504,9 @@
to be explicitly set for instances of QListWidgetItem, QTableWidgetItem,
and QTreeWidgetItem.
+ Note that it is undefined behavior to reimplement QAbstractItemModel::hasChildren
+ to return true for an index if that index has the Qt::ItemNeverHasChildren flag set.
+
\sa QAbstractItemModel
*/