[Qt-interest] Crash QTableWidget
Jonathan Finlay
jmfinlayp at gmail.com
Tue Feb 23 15:31:27 CET 2010
I tried to clear a QTableWidget but i got a bug and the program goes down,
the public slot is:
void MainWindow::vaciarFormulario(){
// tableWidget = QTableWidget
if ( ui->tableWidget->rowCount() == 0 )
return;
if ( ui->tableWidget->selectedItems().count() != 0 )
ui->tableWidget->currentItem()->setSelected(false);
ui->tableWidget->setRowCount(0);
}
Yes, i try with clear() and clearContents() but the problem continue, i know
is a segment fault but i dont know who is the problem... its a easy function
and work one or two times, then goes down.
I appreciate you help.
--
Jonathan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100223/bb94644f/attachment.html
More information about the Qt-interest-old
mailing list