How to display 2 SQLite tables with one to many relation into one QTableWidget
问题 I have following two tables in Db, with one to many relationship: self.c.execute("CREATE TABLE IF NOT EXISTS dispatch(" "id_dispatch INTEGER PRIMARY KEY AUTOINCREMENT," "d_date TEXT," "d_mill TEXT," "d_buyer TEXT," "d_addFreight INTEGER," "d_subFreight INTEGER," "d_amount INTEGER," "d_cd INTEGER," "d_comm INTEGER," "d_netAmount INTEGER)") self.c.execute("CREATE TABLE IF NOT EXISTS dispatch_products(" "dispatch_id INTEGER NOT NULL REFERENCES DISPATCH(id_dispatch)," "product INTEGER," "quantity