Hello anyone
I have a question
I want to update a QTableWidget through a Dialog is this possible?
When i click with the mouse on a item in the QTableWidget it popup a Dialog.
When i compile everthing works fine but i don't see any item displaying in my Dialog.
I have tried severall options.
See code
{
if(item != contactTable->currentItem())
return;
if(item)
{
contactDialog dlg(this);
if(dlg.
exec() == QDialog::Accepted) dlg.leBedrijf->setText(item->text());
}
}
void ContactWindow::edit(QTableWidgetItem *item )
{
if(item != contactTable->currentItem())
return;
if(item)
{
contactDialog dlg(this);
if(dlg.exec() == QDialog::Accepted)
dlg.leBedrijf->setText(item->text());
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks