Hello
I try your suggestion but with no luck.
I think wat the problem is.
I comment out some lines like this.
void MainWindow::test(){
matDialog dlg(this);
if(dlg.
exec() == QDialog::Accepted){ // dlg.matTable->currentItem();
// if(!item->text().isEmpty()){
// QString mat = item->text();
// ui->matvoorLe->setText(mat);
// }
}
}
This works no problem.
The line dlg.matTable->currentItem(); is the problem that the Dialog hangs.
The matTable crashes the Dialog.
If i get rid of the comment the line dlg.matTable->currentItem(); its hangs.
Thanks in advance.
void MainWindow::test(){
matDialog dlg(this);
if(dlg.exec() == QDialog::Accepted){
// dlg.matTable->currentItem();
// if(!item->text().isEmpty()){
// QString mat = item->text();
// ui->matvoorLe->setText(mat);
// }
}
}
This works no problem.
The line dlg.matTable->currentItem(); is the problem that the Dialog hangs.
The matTable crashes the Dialog.
matTable is in the Dialog a QTableWidget.
If i get rid of the comment the line dlg.matTable->currentItem(); its hangs.
Thanks in advance.
To copy to clipboard, switch view to plain text mode
Bookmarks