Results 1 to 3 of 3

Thread: One instance; Run at startup; Save the input data

  1. #1
    Join Date
    Apr 2011
    Posts
    11
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default One instance; Run at startup; Save the input data

    I have a small app: 3 input fields and 2 buttons.

    What i don't know how to do:
    - how to i make the app start in the background every time the OS ( Linux or Windows ) starts; what is the best solution at this time

    - what would be a good choice to save the data from the input fields, so the next time the computer starts, the fields are repopulated automatically; i'm thinking to write all the data in a text file, but i also have a password there, so it's not nice

    - limit the application to only one instance; if the user tries to open the app, the already running instance will be brought to the foreground

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: One instance; Run at startup; Save the input data

    - use autostart
    - see QSettings and encrypt your password (QCA e.g.)
    - see Qt Solutions there is an example of an application which could only be started once.

  3. #3
    Join Date
    Apr 2011
    Posts
    11
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: One instance; Run at startup; Save the input data

    As far as i can see, autostart works only on Symbian.
    I will try to put a script in /etc/init.d for Linux, but i still don't know how to do it for Windows.

    Thanks for your reply

Similar Threads

  1. Save added Data to a GUI
    By bostero22 in forum Qt Programming
    Replies: 1
    Last Post: 8th June 2010, 15:27
  2. Replies: 2
    Last Post: 8th August 2008, 01:54
  3. EditStrategy, how to save data
    By JeanC in forum Qt Programming
    Replies: 33
    Last Post: 9th January 2008, 16:31
  4. problem with reading input data in qt
    By Ahmad in forum Qt Programming
    Replies: 3
    Last Post: 9th April 2007, 10:58
  5. Transferring data input from a Widget to a cpp file
    By Ahmad in forum Qt Programming
    Replies: 1
    Last Post: 10th March 2007, 09:59

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.