aboutsummaryrefslogtreecommitdiffstats
path: root/docs/checks/README-child-event-qobject-cast.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/checks/README-child-event-qobject-cast.md')
-rw-r--r--docs/checks/README-child-event-qobject-cast.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/checks/README-child-event-qobject-cast.md b/docs/checks/README-child-event-qobject-cast.md
new file mode 100644
index 00000000..3299e3f7
--- /dev/null
+++ b/docs/checks/README-child-event-qobject-cast.md
@@ -0,0 +1,6 @@
+# child-event-qobject-cast
+
+Finds places where `qobject_cast<MyType>(event->child())` is being used inside `QObject::childEvent()` or equivalent (`QObject::event()` or `QObject::eventFilter()`).
+
+
+`qobject_cast` can fail because the child might not be totally constructed yet.