PDA

View Full Version : writing object to the file(Object Persistance)



jjbabu
11th June 2009, 12:57
Hi to all,

Basically i need to implement "forward" and "backward" options for my application.
My application is dealing with RDBMS. I have to execute some queries and displaying the information on Table view.
I am using "QSqlQueryModel" object to execute query and holding the table information.

what i required is writing the "QSqlQueryModel" object into the file to implement "forward" and "backward" options.

is it possible? plz give me any suggestions to solve this.

thanks in advance,,

aamer4yu
11th June 2009, 13:38
The Qt's Undo Framework (http://doc.trolltech.com/4.5/qundo.html) might give you some idea :)

jjbabu
11th June 2009, 15:28
Here main requirement is i don't use the program memory and don't access the data base to get the information.

i just want to store the obtained information object into the file and get back that object to display on GUI directly.

for example How the browser is implementing the back forward options using cache buffer,like that i have to store my QSqlQueryModel object in file.