| | |
| | | rec.setValue("password", channelRec.str_password); |
| | | rec.setValue("brand", channelRec.str_brand); |
| | | rec.setValue("reserved", channelRec.str_reserved); |
| | | rec.setValue("type", channelRec.type); |
| | | |
| | | pModel.insertRecord(-1, rec);//TODO |
| | | |
| | |
| | | std::list<Record_Cam_Dev> lst; |
| | | QSqlTableModel pModel(NULL, m_db); |
| | | pModel.setTable("cam_dev"); |
| | | pModel.setFilter(QObject::tr("cam_dev_id != '' and cam_dev_id is not null and type='0'")); |
| | | pModel.setFilter(QObject::tr("cam_dev_id != '' and cam_dev_id is not null ")); |
| | | pModel.setEditStrategy(QSqlTableModel::OnManualSubmit);//OnManualSubmit OnFieldChange |
| | | pModel.select(); |
| | | |