Results 1 to 2 of 2

Thread: QSettings on 64bit Machine

  1. #1
    Join Date
    Mar 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default QSettings on 64bit Machine

    Hi,
    I've a problem with QSettings, ( QT32bit on a 64bitOS ) doesn't see the group HKEY_LOCAL_MACHINE\SOFTWARE !!

    If I Create a :
    QSettings *s = new QSettings("HKEY_LOCAL_MACHINE\\SOFTWARE", QSettings::NativeFormat);

    It believe to watch the HKEY_LOCAL_MACHINE\\SOFTWARE but instead is in HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node !!

    I've a 64bit Application (MATLAB) and it writes the settings in the key :
    HKEY_LOCAL_MACHINE\\SOFTWARE\\MathWorks\\MATLAB\\7 .10

    This Key for QT is Inaccesible because it goes directly to the subnode HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node.

    What can I do for read that key ?

    Thank you,
    Salvo

  2. #2
    Join Date
    Oct 2010
    Location
    Berlin, Germany
    Posts
    358
    Thanks
    18
    Thanked 68 Times in 66 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QSettings on 64bit Machine

    I don't have a solution, but a small explanation: if a 32-bit-software accesses the registry of a 64-bit system, it will be automatically redirected to Wow6432Node.

Similar Threads

  1. Replies: 7
    Last Post: 19th April 2011, 12:20
  2. Qt 4.7.1 on Windows7 (64Bit)
    By caius9090 in forum Installation and Deployment
    Replies: 1
    Last Post: 18th November 2010, 22:59
  3. QSettings and Windows 7 64bit
    By JohnToddSr in forum Newbie
    Replies: 4
    Last Post: 12th May 2010, 02:01
  4. Replies: 2
    Last Post: 22nd December 2009, 20:52
  5. Compiling Qt 32bit on 64bit os..
    By tgreaves in forum Newbie
    Replies: 2
    Last Post: 12th March 2009, 13:34

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.