Hello everybody................... Thanzzzzzzzz 4 d help.......but now i need help.......
i have a QListWidget which contains the list of ip address of the other pc. A QTablewidget which contains 5 columns - ip address(which will take from QListWidget), compare, similar, pass/fail(it is an Icon) and remarks. A pushButton which says RUN. On clicking the button all the data should update in the table i can update ip address row by row but rest of the column can't b updated. my code: def run(self): countRows = self.listWidget.count() for i in range(countRows): strItem = self.listWidget.item().text() self.tableWidgetItem = QTableWidgetItem() self.tableWidgetItem.setText(QString(strItem)) self.table.setItem(i,0,self.tableWidgetItem) str1 = QString("1") self.tableWidgetItem.setText(str1) self.table.setItem(i,1,self.tableWidgetItem) str1 = QString("2") self.tableWidgetItem.setText(str2) self.table.setItem(i,2,self.tableWidgetItem) self.tableWidgetItem.setIcon(QIcon(QPixmap("../Icons/tick.png))) self.table.setItem(i,3,self.tableWidgetItem) str1 = QString("4") self.tableWidgetItem.setText(str4) self.table.setItem(i,4,self.tableWidgetItem) but when i clicked the RUN button. the column of ip address displays correct data but in 2nd column it shows "4" n error "QTableWidget: can't read QTableWidgetItem that is owned by another QTableWidgetItem" Plzzzzzzzz help me........ASAP........Thanzzzzzzzzzz in advance.................... _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers