Results 1 to 3 of 3

Thread: setting valeu through registry

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: setting valeu through registry

    Quote Originally Posted by sudhansu.kanungo View Post
    settings.setValue("Product Version"," Product Version 7.5.1.1");
    settings.value("interval").toString(); //<---------------------------------------------- this line does nothing
    settings.setValue("File Version","File Version 7.5.1.1");
    ....
    QVariantObj1=settings.value("Product Version",1024);
    QVariantObj2=settings.value("File Version",1024);
    ...
    while changing the value from 7.5.1.1 to 7.5 in registry its not affecting exe file. that is next time im running that exe im getting same output i.e. 7.5.1.1.
    Always read what you wrote. First you change both versions to 7.5.1.1 and then you read them. This way you will always get 7.5.1.1, no matter what's in registry.

  2. The following user says thank you to jacek for this useful post:

    sudhansu.kanungo (1st October 2007)

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.