pyqt double left click table row code example
Example: pyqt double left click table row
connect(dataTabView_, SIGNAL(doubleClicked(const QModelIndex &)), this, SLOT(slotRowDoubleClicked(const QModelIndex &))); void ABED::rowDoubleClicked(const QModelIndex index){ / / Get a row through the Model QModelIndex index = ui->tableView->currentIndex(); if (index.isValid()) { / / Can also be obtained through a custom Model QSqlRecord record = model->record(index.row()); QString value = record.value("xxxxxxx").toString(); ................. }}