aboutsummaryrefslogtreecommitdiffstats
path: root/tests/connect-non-signal/392441.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/connect-non-signal/392441.cpp')
-rw-r--r--tests/connect-non-signal/392441.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/connect-non-signal/392441.cpp b/tests/connect-non-signal/392441.cpp
new file mode 100644
index 00000000..084dbd44
--- /dev/null
+++ b/tests/connect-non-signal/392441.cpp
@@ -0,0 +1,7 @@
+#include <QtWidgets/QComboBox>
+
+void test_bug392441()
+{
+ QComboBox *combo;
+ QObject::connect(combo, QOverload<const QString &>::of(&QComboBox::currentIndexChanged), [] (QString) {}); // OK
+}