Редакция 77 | Редакция 81 | К новейшей редакции | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 77 | Редакция 78 | ||
---|---|---|---|
Строка 754... | Строка 754... | ||
754 | delete tableForInstance; |
754 | delete tableForInstance; |
755 | model = new QSqlTableModel(); |
755 | model = new QSqlTableModel(); |
756 | tableForInstance = new QTableView(); |
756 | tableForInstance = new QTableView(); |
757 | model->setTable(Inctance_str); |
757 | model->setTable(Inctance_str); |
758 | model->setEditStrategy(QSqlTableModel::OnManualSubmit); |
758 | model->setEditStrategy(QSqlTableModel::OnManualSubmit); |
- | 759 | model->select(); |
|
759 | tableForInstance->setModel(model); |
760 | tableForInstance->setModel(model); |
760 | tableForInstance->setWindowTitle(Inctance_str); |
761 | tableForInstance->setWindowTitle(Inctance_str); |
761 | tableForInstance->resizeRowsToContents(); |
762 | tableForInstance->resizeRowsToContents(); |
762 | tableForInstance->show(); |
763 | tableForInstance->show(); |
763 | 764 |