diff options
Diffstat (limited to 'sources/pyside6/tests/pysidetest/qvariant_test.py')
| -rw-r--r-- | sources/pyside6/tests/pysidetest/qvariant_test.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sources/pyside6/tests/pysidetest/qvariant_test.py b/sources/pyside6/tests/pysidetest/qvariant_test.py index 79ac446e3..8b789b2c7 100644 --- a/sources/pyside6/tests/pysidetest/qvariant_test.py +++ b/sources/pyside6/tests/pysidetest/qvariant_test.py @@ -11,9 +11,9 @@ sys.path.append(os.fspath(Path(__file__).resolve().parents[1])) from init_paths import init_test_paths init_test_paths(True) -from testbinding import TestObject, TestQVariantEnum +from testbinding import TestObject, TestQVariantEnum, QVariantHolder from PySide6.QtCore import Qt, QKeyCombination -from PySide6.QtGui import QKeySequence, QAction +from PySide6.QtGui import QKeySequence, QAction, QMatrix3x3 from helper.usesqapplication import UsesQApplication @@ -64,6 +64,15 @@ class QVariantTest(UsesQApplication): # check toInt() conversion for IntEnum self.assertEqual(PyTestQVariantEnum.getNumberFromQVarEnum(Qt.GestureType.TapGesture), 1) + def testMatrixTemplates(self): + holder = QVariantHolder() + matrix = QMatrix3x3() + matrix.setToIdentity() + holder.setValue(matrix) + returned = holder.value() + self.assertTrue(returned, QMatrix3x3) + self.assertTrue(returned.isIdentity()) + if __name__ == '__main__': unittest.main() |
