QSettings issue mingw32 vs. msvc
-
Hi,
Actually have only tried compiling in debug mode and runned in debugmode from QtCreator.But I guess it will give same result in release mode.
I discovered the issue when building a DLL which should be able to access the same key. (That DLL is build with msvc)
I then tryed building the other application with msvc, and found same issue. -
Hi,
Actually have only tried compiling in debug mode and runned in debugmode from QtCreator.But I guess it will give same result in release mode.
I discovered the issue when building a DLL which should be able to access the same key. (That DLL is build with msvc)
I then tryed building the other application with msvc, and found same issue. -
Made a simple sample, you can get i here www.daniac.dk/QSettingsTest.zip
Exact same issue here, might be a bug
-
Made a simple sample, you can get i here www.daniac.dk/QSettingsTest.zip
Exact same issue here, might be a bug
-
Sorry but when you say no messages.
The only messages is from qDebug()
Have changed the sample to show the results in a plaintext box - Sorry
-
I have modified and updated the sample with a plaintextedit showwing the results - Sorry
mingw32 - Output:
Getting MyNewPort value:COM2
Setting MyNewPort=COM2 status:0 <- Success
Getting MyNewPort value:COM2msvc - Output:
Getting MyNewPort value:default <- Failed reading also
Setting MyNewPort=COM2 status:1 <- Failed writing
Getting MyNewPort value:default <- Failed reading also -
I have modified and updated the sample with a plaintextedit showwing the results - Sorry
mingw32 - Output:
Getting MyNewPort value:COM2
Setting MyNewPort=COM2 status:0 <- Success
Getting MyNewPort value:COM2msvc - Output:
Getting MyNewPort value:default <- Failed reading also
Setting MyNewPort=COM2 status:1 <- Failed writing
Getting MyNewPort value:default <- Failed reading also -
-
I have filed a bug
https://bugreports.qt.io/browse/QTBUG-55257