Results 1 to 5 of 5

Thread: How to store the lineedit contents in memory

  1. #1
    Join Date
    Jul 2009
    Location
    Bangalore
    Posts
    68
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default How to store the lineedit contents in memory

    Hi,

    I will input some data into the lineedit then i need to store these data into memory and whenever i overwrite the data again it should store in same memory how to do this.
    Thanks & Regards
    Sandeep G.R.

  2. #2
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to store the lineedit contents in memory

    Quote Originally Posted by grsandeep85 View Post
    Hi,
    I will input some data into the lineedit then i need to store these data into memory and whenever i overwrite the data again it should store in same memory how to do this.
    Use QSettings for this. I am assuming writing into memory implied writing on disk here.

  3. #3
    Join Date
    Jul 2009
    Location
    Bangalore
    Posts
    68
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to store the lineedit contents in memory

    Even if i switch off and switch on the cpu when i run my qt-application then also i need to read the same data in lineedits which i have entered last before the switch off, now Qsettings will be helpful or i need to go for file operations.
    Thanks & Regards
    Sandeep G.R.

  4. #4
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to store the lineedit contents in memory

    Go ahead with QSettings

  5. #5
    Join Date
    Jul 2009
    Location
    Bangalore
    Posts
    68
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to store the lineedit contents in memory

    Thanks yogesh
    Thanks & Regards
    Sandeep G.R.

Similar Threads

  1. Memory debugging in windows
    By txandi in forum Qt Programming
    Replies: 3
    Last Post: 20th February 2009, 13:45
  2. Best way to store and retrieve contents of QTableWidget?
    By codeslicer in forum Qt Programming
    Replies: 3
    Last Post: 6th April 2008, 09:39
  3. what is free store in C++ memory?
    By Masih in forum General Programming
    Replies: 6
    Last Post: 2nd July 2007, 22:25

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.