Something like this should be quite close to the behavior with the tree widget:
connect(tableCariler, SIGNAL(doubleClicked(const QModelIndex&)), this, SLOT(slotCariEdit(const QModelIndex&)));
void slotCariEdit(const QModelIndex& idx)
{
formCari ca(this, idx->data(Qt::StatusTipRole).toString());
ca.exec();
}
connect(tableCariler, SIGNAL(doubleClicked(const QModelIndex&)), this, SLOT(slotCariEdit(const QModelIndex&)));
void slotCariEdit(const QModelIndex& idx)
{
formCari ca(this, idx->data(Qt::StatusTipRole).toString());
ca.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks