I iter for a QList with while with this code:
QList<Job> jobsList;
jobsList = job.getJobs(650, 654);
QListIterator<Job> iterJobs(jobsList);
while(iterJobs.hasNext())
{
job = iterJobs.next();
qDebug() << "IdJob " << job.jobId();
qDebug() << "jobType " << job.jobType();
}
and all fine but How can I to make whith foreach?
Thanks you very much
1 Answer