I made a simple application in PyQt for inserting data in a database. I used multiples QlineEdit and in all of them I can copy, cut, undo etc. but I cannot paste text. If I right-click on the QlineEdit 'paste' is disabled. Here below the code where I defined the QlineEdit:
class Ui_Form(QtGui.QWidget):
def __init__(self):
QtGui.QWidget.__init__(self)
self.setupUi(self)
def setupUi(self, Dialog):
self.titolo = QtGui.QLineEdit(self.groupBox)
self.titolo.setDragEnabled(True)
self.titolo.setReadOnly(False)
self.titolo.setObjectName(_fromUtf8("titolo"))
self.gridLayout.addWidget(self.titolo, 0, 2, 1, 1)