QGis cannot retrieve a text value from QLineEdit

المشرف العام

Administrator
طاقم الإدارة
I am a developing a small plugin with python for QGis. I have a QLineEdit widget and I need to take the input from there. The input is a 8 character number string. However when I try to retrieve the text from the QLineEdit python returns a unicode object which does not seem to have any string stored in it.

The QLineEdit field is declared in the constructor my form as follows self.combo = QtGui.QLineEdit() The text is retireved during a signal-slot call as follows the_text = self.combo.text() print the_text print len(the_text) This should be very simple. Am I doing something wrong or this is a QGis Bug?



أكثر...
 
أعلى