We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8523dd9 commit 9a6bf12Copy full SHA for 9a6bf12
1 file changed
tests/PythonQtTests.cpp
@@ -413,6 +413,13 @@ void PythonQtTestApi::testDynamicProperties()
413
main.evalScript("obj.testProp = None");
414
QVERIFY(12 == main.getVariable("obj.testProp").toInt());
415
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
423
}
424
425
0 commit comments