Not a segfault, I get this:
ASSERT failure in QList<T>::operator[]: "index out of range", file /usr/include/qt4/QtCore/qlist.h, line 403
ASSERT failure in QList<T>::operator[]: "index out of range", file /usr/include/qt4/QtCore/qlist.h, line 403
To copy to clipboard, switch view to plain text mode
when I try to use sender[6] to get the row and/or column.
This looks to me that ther is no sixth column in the table, but there is. I can force it to get column six by hardcodeing in a 6,
QCheckBox *mcb
= qobject_cast<QCheckBox
*>
(m_ui
->tableWidget
->cellWidget
(item
->row
(),
6));
QCheckBox *mcb = qobject_cast<QCheckBox*>(m_ui->tableWidget->cellWidget(item->row(), 6));
To copy to clipboard, switch view to plain text mode
but I can't get column six using
QCheckBox *mcb
= qobject_cast<QCheckBox
*>
(m_ui
->tableWidget
->cellWidget
(item
->row
(), selected
[6]->column
()));
QCheckBox *mcb = qobject_cast<QCheckBox*>(m_ui->tableWidget->cellWidget(item->row(), selected[6]->column()));
To copy to clipboard, switch view to plain text mode
Why!?
Had to wrap the Assert in code or the second colon after QList<T> showed up as a smilie..
Bookmarks