Does anyone know the relation between return value of
QTableWidget::item(x, y)
and
QTableWidget::cellWidget (x, y)
in the same QTableWidget and same row.column.?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s all in the return value.
item()returns theQTableWidgetItem*associated with that row/column.cellWidget()is more closely associated withsetItemWidget(QWidget*), and returns theQWidget*that was given in thesetItemWidgetcall.