Results 1 to 10 of 10

Thread: saving files for future use on different computers running the same application

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2010
    Posts
    10
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    7

    Default Re: saving files for future use on different computers running the same application

    Ok, so if the user inputs data into an edit text box, some of QSettings methods should be able to handle saving this information?

    I am looking through the documentation and i must be missing the part where i can save this to a file specified by the user. For instance, the user just got through creating some tabs in their layout and then input some data into edit text boxes on those tabs (all within mainwindow). Now they want to save the layout and contents of what they just input to a file. They click save and then go to a different computer and want to load that stuff there. How is QSettings going to do this? I just keep seeing it doing stuff with the registry.

    Sorry, i am just really confused. I am going to read it some more, but if you have input i would greatly appreciate further assistance! =)

  2. #2
    Join Date
    Apr 2010
    Posts
    769
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11
    Thanks
    1
    Thanked 94 Times in 86 Posts

    Default Re: saving files for future use on different computers running the same application

    You can tell QSettings to input/output from an external file.

  3. The following user says thank you to SixDegrees for this useful post:

    prolink007 (13th June 2011)

  4. #3
    Join Date
    Apr 2010
    Posts
    10
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    7

    Default Re: saving files for future use on different computers running the same application

    Using this: QSettings::QSettings ( const QString & fileName, Format format, QObject * parent = 0 )

    Is it that simple or is there something else?

  5. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: saving files for future use on different computers running the same application

    It is that simple.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. The following user says thank you to wysota for this useful post:

    prolink007 (13th June 2011)

Similar Threads

  1. Problem when saving bmp files
    By cdlaweed in forum Newbie
    Replies: 3
    Last Post: 17th March 2011, 09:20
  2. Application crash when saving the image
    By Astrologer in forum Qt Programming
    Replies: 1
    Last Post: 10th May 2010, 09:52
  3. Running exe files
    By Luc4 in forum Qt Programming
    Replies: 0
    Last Post: 4th March 2010, 20:29
  4. Running flash .swf files in widget?
    By ashukla in forum Qt Programming
    Replies: 37
    Last Post: 12th February 2008, 04:14
  5. Running application on Mac OS X
    By munna in forum General Discussion
    Replies: 1
    Last Post: 19th April 2006, 20:10

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.