Hi All,
hope someone can help me with this. I'm learning QT creator 5. I have a load of line edits to fill in on a form. These are saved to an array of strings which I can save as an XML file. Right now loading and saving is a nightmare because I can't work out how to get creator to set an array of line edits so now I save as
Code:
array[ 0 ] = ui->lineedit_0->text();
...
array[ 50 ] = ui->lineedit_50->text();
and reverse for load.
What I'd like to do is a basic
Code:
for( int j= 0;j < 50; j++ )
{
array[ j ] = ui->lineedit[ j ]->text();
}
can I do this in QT creator?
Thanks in advance.