My requirement is to get multiple widget values from a cell from a QTableWidget.
in one of my QTableWidget's coluumn having a QCheckbox, QLineEdit and another QCheckbox. For adding this I am using QHBoxLayout and QVBoxlayout. But while reading the values, how I can read the values from QTableWidget? I can get the widget while using olumnLvlTbl.cellWidget(0,1). But how I can get the values from nested Widgets?
colmumnLayoutRow=QHBoxLayout()
colmumnLayout1=QVBoxLayout()
dsfLblRowCount=QLabel(str(dataC))
rowCountChkBox = QCheckBox(parent=columnLvlTbl)
colmumnLayout1.addWidget(dsfLblRowCount)
colmumnLayout1.addWidget(rowCountChkBox)
colmumnLayout2=QVBoxLayout()
dsfLblRowCount2=QLabel("Pass %:")
rowCountLineEdit2 = QLineEdit(parent=columnLvlTbl)
rowCountLineEdit2.setMaximumWidth(50)
rowCountLineEdit2.setValidator(QtGui.QIntValidator (1, 100, self))
colmumnLayout2.addWidget(dsfLblRowCount2)
colmumnLayout2.addWidget(rowCountLineEdit2)
colmumnLayout3=QVBoxLayout()
dsfLblRowCount3=QLabel("Notification:")
rowCountChkBox3 = QCheckBox(parent=columnLvlTbl)
colmumnLayout3.addWidget(dsfLblRowCount3)
colmumnLayout3.addWidget(rowCountChkBox3)
cellWidgetRow1 = QWidget()
cellWidgetRow1.setLayout(colmumnLayout1)
cellWidgetRow2 = QWidget()
cellWidgetRow2.setLayout(colmumnLayout2)
cellWidgetRow3 = QWidget()
cellWidgetRow3.setLayout(colmumnLayout3)
colmumnLayoutRow.addWidget(cellWidgetRow1)
colmumnLayoutRow.addWidget(cellWidgetRow2)
colmumnLayoutRow.addWidget(cellWidgetRow3)
Whenever I am trying to do one action, I need to get the values from the QTableWidget.
Thanks in Advance
Bookmarks