I want to retrieve plain text from QLineEdit()
object. The text method returns a QString
object. I just want a simple string object.
I am using pyqt4.
def n(self):
new_label=QLineEdit()
new_label.setText("txt")
txt=self.new_label.text()
self.name=txt
txt should be a simple string not QString
.