void QTableWidget::setCellWidget ( int row, int column, QWidget * widget )
C++ (Qt)QSqlQuery query;query.exec("SELECT * FROM base;"); tableWidget->insertRow(0);tableWidget->setItem(0, 0, new QTableWidgetItem(query.value(0).toString()));