Hello everyone, there is a structure
struct data{ QString engRegion; QString rusRegion; //.. } Tried to write data as follows:
data test; //.. QFile f("D:\\test.json"); f.open(QFile::WriteOnly); QDataStream out(&f); out << test; But unfortunately this does not work. So how can you write a structure to a file? I really hope for your help, thanks in advance!