Transferring data input from a Widget to a cpp file
hi everyone, :)
i m new to QT Programming, and i must create an interface in which a user inputs his question in a LineEdit and the related responses in some LineEdit Widgets.
my probleme is that i dont know how to transfer those input datas that i get from LineEdits to a cpp file where then i can output those data in an external file.. pls help me
n the next step is to read that external file and put back the question a LineEdit Widget and the related responses in Some CheckBox Widgets..
pls help me, i dont know much QT data transfer..
tnx :( :confused:
Re: Transferring data input from a Widget to a cpp file
Start with reading the detailed descriptions of QFile and QTextStream.
Here are a couple of examples picked out of the documentation (follow the links above):
Code:
// read
return;
while (!in.atEnd()) {
process_line(line);
}
// write
return;
out << "The magic number is: " << 49 << "\n";