JSON list in QT
Unsolved
General and Desktop
-
Hi, guys. Recently I began study QT ( C++ ), and I can't understand how can do that:
I have in the project: test.h, test.cpp and test.ui files.
The test.ui form has two lineEdit and the botton named "save".
And I create the class Books ( books.cpp and books.h ). This class has two parameters: a and b.
I want to save this to parameters in class from two lineEdit in test.ui, and write them into a JSON file.
And, of course, I will have many books in Books class.class Book
{
public:
Book();
QString a;
QString b;
}; -
@George_T What exactly are you asking?
Did you read https://doc.qt.io/qt-6/json.html ?