Qt file directory operations QDir, QFile, QTemporaryDir/File, QTextStream, QDataStream, QSettings, QFileInfo, QFileSystemWatch

Abstract: This Qt blog post mainly introduces which classes can be used when processing file directory operations in Qt development, what are the functions of these classes, how to use them roughly, common class methods of classes and related matters that need to be paid attention to. Wait, for more details, you need to search […]

QT configuration data reading and writing (QJSON/YAML/QSettings)

JSON file reading and writing Classes involved in reading and writing JSON files: QJsonArray QJsonDocument QJsonObject QJsonParseError Data reading process: Qfile-QByteArray-QJsonDocument-QJsonObject-QJsonValue Data writing is the reverse process of data reading. QJsonObject internally stores json structure files: The value(“key”) method returns the QJsonValue class, or directly overloads the [] method and uses obj[“key”] to get the […]

QSettings Class

QSettings class QSettings class public type (enumeration) public member function static member function function This class writes the characteristics of the file QSettings class The QSettings class provides persistent platform-independent application settings. header: #include< QSettings > qmake: QT + =core inheritance (parent) : QObject Public type (enumeration) 0: Store settings using the storage format most […]