diff options
Diffstat (limited to 'docs/checks/README-static-pmf.md')
-rw-r--r-- | docs/checks/README-static-pmf.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/checks/README-static-pmf.md b/docs/checks/README-static-pmf.md new file mode 100644 index 00000000..e27e7b6c --- /dev/null +++ b/docs/checks/README-static-pmf.md @@ -0,0 +1,9 @@ +# static-pmf + +Warns when storing a pointer to QObject member function into a static variable. +Passing such variable to a connect is known to fail when using MingW. + +Example: + +static auto pmf = &QObject::destroyed; +QCOMPARE(pmf, &QObject::destroyed); // fails |