aboutsummaryrefslogtreecommitdiffstats
path: root/tests/qtgui/qpixmap_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qtgui/qpixmap_test.py')
-rw-r--r--tests/qtgui/qpixmap_test.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/qtgui/qpixmap_test.py b/tests/qtgui/qpixmap_test.py
new file mode 100644
index 000000000..1bff9fff3
--- /dev/null
+++ b/tests/qtgui/qpixmap_test.py
@@ -0,0 +1,16 @@
+import unittest
+
+from helper import UsesQApplication
+from PySide.QtGui import QPixmap
+from PySide.QtCore import QVariant
+
+#Only test if is possible create a QPixmap from a QVariant
+class QPixmapTest(UsesQApplication):
+ def testQVariantConstructor(self):
+ pixmap = QPixmap()
+ v = QVariant(pixmap)
+ pixmap_copy = QPixmap(v)
+
+if __name__ == '__main__':
+ unittest.main()
+