hello everyone , i need to make a borders for my printing report and i need a function that move my logo into middle of my report at first line , how i can do these things in Qt4 ?? i write thia code using PyQt4

QtCore.QObject.connect(self.pushButton_5,QtCore.SIGNAL(_fromUtf8("clicked()")),self.Delete)
    def Delete(self):
          self.printer = QtGui.QPrinter()
          self.printer.setPageSize(self.printer.A4)
          self.text = QtGui.QTextEdit()
          self.cursor = QtGui.QTextCursor()
          self.cursor = self.text.textCursor()
          self.image = QtGui.QTextImageFormat()
          self.image.setName("leaf.jpg")
          self.cursor.insertImage(self.image)      
          pdialog = QtGui.QPrintPreviewDialog(self.printer)
          pdialog.paintRequested.connect(self.text.print_)
          pdialog.exec_()