0
QLabels, QLineEdits 및 QComboBoxes로 구성된 약 15 개의 위젯이있는 QGrid 레이아웃이 있습니다. QLineEdit 위젯에서만 텍스트를 추출하는 함수를 원합니다.pyqt4의 QGridLayout에서만 QLineEdit 위젯에서 텍스트 추출
이런 일이
for i in range(self.grid.count()):
if self.grid.itemAt.widget(i).Type == QtGui.QLineEdit: //Not able to figure out the syntax
print self.grid.itemAt.widget(i).text()
사람이 구문을 도울 수
내 말은 무엇입니까?
고맙습니다. :) – Manoj