Answer the question
In order to leave comments, you need to log in
Qt convert QTableWidgetItem to QPushButtom?
In general, I have buttons in the table, and I sometimes need to change the properties of these buttons, I try to make a pointer to this button, but nothing comes out of me, that's what I tried
QPushButton *pButton = qobject_cast<QPushButton*>((QObject*)ui->ViewData->item(i, 7));
if (!pButton){
qDebug() << "Fail";
continue;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question