mireiner
24th April 2016, 16:01
Hi there,
how to iterate QStringList from a specific posistion to its end. Both examples don't work:
QStringList stringlist;
for (int i = 4; !stringlist[i].isNull(); i++){}
for (QStringList::iterator it = stringlist.at(4); it != stringlist.end(); ++it) {}
How its down right?
Hi there,
how to iterate QStringList from a specific posistion to its end. Both examples don't work:
QStringList stringlist;
for (int i = 4; !stringlist[i].isNull(); i++){}
for (QStringList::iterator it = stringlist.at(4); it != stringlist.end(); ++it) {}
How its down right?
Hi there,
how to iterate QStringList from a specific posistion to its end. Both examples don't work:
QStringList stringlist;
for (int i = 4; !stringlist[i].isNull(); i++){}
for (QStringList::iterator it = stringlist.at(4); it != stringlist.end(); ++it) {}
How its down right?
Added after 25 minutes:
Just found a solution for myself:
QStringList stringlist;
for (QStringList::iterator it = stringlist.begin()+4; it != stringlist.end(); ++it)
{
do something;
}
Is this the easiest way to do this?
how to iterate QStringList from a specific posistion to its end. Both examples don't work:
QStringList stringlist;
for (int i = 4; !stringlist[i].isNull(); i++){}
for (QStringList::iterator it = stringlist.at(4); it != stringlist.end(); ++it) {}
How its down right?
Hi there,
how to iterate QStringList from a specific posistion to its end. Both examples don't work:
QStringList stringlist;
for (int i = 4; !stringlist[i].isNull(); i++){}
for (QStringList::iterator it = stringlist.at(4); it != stringlist.end(); ++it) {}
How its down right?
Hi there,
how to iterate QStringList from a specific posistion to its end. Both examples don't work:
QStringList stringlist;
for (int i = 4; !stringlist[i].isNull(); i++){}
for (QStringList::iterator it = stringlist.at(4); it != stringlist.end(); ++it) {}
How its down right?
Added after 25 minutes:
Just found a solution for myself:
QStringList stringlist;
for (QStringList::iterator it = stringlist.begin()+4; it != stringlist.end(); ++it)
{
do something;
}
Is this the easiest way to do this?