[Qt-interest] How can I manage a model how insert, delete data in lines and columns
wim.delvaux at adaptiveplanet.com
wim.delvaux at adaptiveplanet.com
Tue Sep 8 20:53:22 CEST 2009
On Tuesday 08 September 2009 20:13:31 Mhayk Whandson wrote:
> Hi all,
>
> How can I create,delete and modify information from the model which
> after I will save in the database ? Exist any class that can help me
> with these operations ? Could you show me an axample ? I would like to
> insert several informations in the model how product name, price and
> manufacturer.
>
> best regards,
well depends on the complexity of your database
1. QSqlQueryModel : READONLY, any SQL query
2. QSqlTableModel : Only table, no relations with other tables
3. QSqlRelationtalTableModel : table with relations but does not work at least
not in 4.5.1.
Solution ? write your own ...
CU
W
More information about the Qt-interest-old
mailing list