diff options
Diffstat (limited to 'tests/QtCore')
-rw-r--r-- | tests/QtCore/qobject_property_test.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/QtCore/qobject_property_test.py b/tests/QtCore/qobject_property_test.py index 776a14dfe..adb1679f3 100644 --- a/tests/QtCore/qobject_property_test.py +++ b/tests/QtCore/qobject_property_test.py @@ -129,6 +129,14 @@ class PropertyCase(unittest.TestCase): self.assertTrue(obj.property('foo') is mysize) + def testValueType(self): + rect = QRect(1, 2, 3, 4) + obj = QObject() + obj.setProperty('rect', rect) + '''Value types when converted to QVariant is copyed''' + self.assertFalse(obj.property('rect') is rect) + self.assertEqual(obj.property('rect'), rect) + class PropertyWithConstructorCase(unittest.TestCase): '''Test case for QObject properties set using named arguments in the constructor.''' |