python - Accessing QT combo and textbox values -
i'm using python 3 , qt4 pyqt. i've been unable access data qcomboboxes , qplaintextedits.
i've read documentation here:
http://doc.qt.io/qt-4.8/qcombobox.html
http://doc.qt.io/qt-4.8/qplaintextedit.html
the thing on these pages appears describe how pull selected value 'plaintext' plain text box , 'currenttext'for combo box. these aren't explicitly described solution, they're thing found makes sense.
currenttext returns following error: "attributeerror: 'qplaintextedit' object has no attribute 'plaintext' "
currenttext not return error, returns starting value of combo box, regardless of what's selected.
example code i'm using:
x = window.ui.tb_x.plaintext() y = window.ui.cb_y.currenttext()
any ideas?
its toplaintext() method in qplaintextedit.
and try itemdata( combo.currentindex ) combo.
Comments
Post a Comment