Exemplo n.º 1
0
 def test_2(self):
     i = QtWidgets.QGraphicsLineItem()
     i.line = QtCore.QLineF(1, 2, 3, 4)
     self.assertEqual(i.line.x1(), 1)
     self.assertEqual(i.line.y1(), 2)
     self.assertEqual(i.line.x2(), 3)
     self.assertEqual(i.line.y2(), 4)
Exemplo n.º 2
0
 def test_2(self):
   # Some smoke test
   b = QtCore.QBuffer()
   b.setData("<doc><e>abc</e></doc>")
   b.open(QtCore.QIODevice.ReadOnly)
   doc = QtXml.QDomDocument()
   doc.setContent(b)
   b.close()
   self.assertEqual(doc.documentElement().tagName, "doc")
   self.assertEqual(doc.documentElement().firstChild().toElement().tagName, "e")
Exemplo n.º 3
0
 def test_2(self):
     # Some smoke test
     v = QtCore.Qt.QT_VERSION
     self.assertEqual(v > 1, True)
     b = QtCore.QBuffer()
     b.setData("all you can eat")
     b.open(QtCore.QIODevice.ReadOnly)
     self.assertEqual(b.read(3), b"all")
     b.read(1)
     self.assertEqual(b.read(3), b"you")
Exemplo n.º 4
0
 def test_2(self):
     app = QtCore.QCoreApplication(["progname"])
     q = QtPrintSupport.QPrinter()
Exemplo n.º 5
0
 def test_2(self):
     app = QtCore.QCoreApplication(["appname"])
     q = QtDesigner.QFormBuilder()
Exemplo n.º 6
0
 def test_2(self):
     app = QtCore.QCoreApplication(["appname"])
     q = QtUiTools.QUiLoader()