QSqlTableModel删除行时不彻底

数据可以成功从数据库删除,但是model上面还遗留一行空白行。
这时只需手动调用select()即可。
【QSqlTableModel删除行时不彻底】Deletions are submitted immediately to the database. The model retains a blank row for successfully deleted row until refreshed with select().

    推荐阅读