Hi everybody!
I have a structure and array in QList :
struct TRadioSounding {
QString station_code; // station_code is a 5 digital code, for example 41217
QString station_name; // station_name is a 4 character code
float station_latitude; // station location
float station_longitude; // station location
float station_elevation; // station location
QDateTime datetime; // data and day time of the radio sounding
bool fitting; // flag showing that the current sounding corresponds to parameters of processing analysis
};
typedef QList<TRadioSounding> TRadioSoundings;
----------------------------------------------------------------
then I want to send pointer on QList th the function and change internal fields of some elements of QList array:
int process_all_radiousoundings(TRadioSoundings *soundings)
{
int count_fitting_soundings = 0; // number of soundings fitting to the given characteristics
for (int i = 0; i < soundings->count(); i++)
{
soundings[i]->fitting = true;
}
}
But I got an error :
error: 'TRadioSoundings {aka class QList<TRadioSounding>}' has no member named 'fitting'
soundings[i].fitting = true;
^
So how can I overpass it or correct my code ?
Added after 55 minutes:
int process_all_radiousoundings(TRadioSoundings & soundings)
{
soundings[i].fitting = true;
Bookmarks