Results 1 to 3 of 3

Thread: writing object to the file(Object Persistance)

  1. #1
    Join Date
    Sep 2007
    Posts
    83
    Thanks
    6
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default writing object to the file(Object Persistance)

    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,,

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: writing object to the file(Object Persistance)

    The Qt's Undo Framework might give you some idea

  3. #3
    Join Date
    Sep 2007
    Posts
    83
    Thanks
    6
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: writing object to the file(Object Persistance)

    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.

Similar Threads

  1. Qt::WA_DeleteOnClose - object persistance
    By ranna in forum Qt Programming
    Replies: 0
    Last Post: 4th June 2009, 07:08
  2. Replies: 4
    Last Post: 19th February 2009, 11:10

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.