songyuncen / qtjsonsettings Goto Github PK
View Code? Open in Web Editor NEWUse JSON as the default format for QSettings in Qt application.
License: MIT License
Use JSON as the default format for QSettings in Qt application.
License: MIT License
Titles says it all. QIODevice complains that the json is writeonly.
Is this normal and should be ignored?
********* Start testing of TestJsonSettings *********
Config: Using QtTest library 5.15.5, Qt 5.15.5 (x86_64-little_endian-llp64 shared (dynamic) debug build; by MSVC 2022), windows 11
QWARN : TestJsonSettings::initTestCase() QIODevice::read (QSaveFile): WriteOnly device
QWARN : TestJsonSettings::initTestCase() QIODevice::read (QSaveFile): WriteOnly device
PASS : TestJsonSettings::initTestCase()
PASS : TestJsonSettings::TestRead()
QWARN : TestJsonSettings::TestModify() QIODevice::read (QSaveFile): WriteOnly device
PASS : TestJsonSettings::TestModify()
PASS : TestJsonSettings::cleanupTestCase()
Totals: 4 passed, 0 failed, 0 skipped, 0 blacklisted, 20ms
********* Finished testing of TestJsonSettings *********
To be seamlessly used with Qt6-based projects, basically only the CMakeLists.txt need some tweaking.
It's possible either to switch to "versionless" option of including Qt modules in the project, but in this way compatibiliity with Qt prior to 5.15 will be lost.
So, using this solution is proposed:
https://doc.qt.io/qt-6/cmake-qt5-and-qt6-compatibility.html#supporting-older-qt-5-versions
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.