July 20, 2010

mbynet mbynet
Lab Rat
18 posts

[Solved] How correctly save data table to DB?

 

I use QSQLITE. Open DB, dispaly in table, make change, close programm. How correctly save data table to DB?

2 replies

July 20, 2010

mbynet mbynet
Lab Rat
18 posts

find answer

  1. model->database().transaction();
  2.         if (model->submitAll()) {
  3.             model->database().commit();
  4.             model->select();
  5.         } else {
  6.             model->database().rollback();
  7.  
  8.     }

July 20, 2010

Tobias Hunger Tobias Hunger
Mad Scientist
3130 posts

I read the title and assumed you meant blueray disc… Only when reading the question itself I realized that you probably meant database:-)

 
  ‹‹ Dynamic library with GUI for Mac      Using ’0’ instead of ’NULL’ ››

You must log in to post a reply. Not a member yet? Register here!