Skip to content

Commit 9a6bf12

Browse files
committed
allow to pass invalid QVariants as QVariant parameter of slots
1 parent 8523dd9 commit 9a6bf12

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/PythonQtTests.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,13 @@ void PythonQtTestApi::testDynamicProperties()
413413
main.evalScript("obj.testProp = None");
414414
QVERIFY(12 == main.getVariable("obj.testProp").toInt());
415415

416+
// remove the dynamic property
417+
main.evalScript("obj.setProperty('testProp', None)");
418+
419+
// check if dynamic property is really gone
420+
QStringList l2 = PythonQt::self()->introspection(PythonQt::self()->getMainModule(), "obj", PythonQt::Anything);
421+
QVERIFY(!l2.contains("testProp"));
422+
416423
}
417424

418425

0 commit comments

Comments
 (0)