mero
26th October 2012, 12:11
Hello,
How can I remove struct from Qlist ?
example (not working)
struct nick { QString name; QString subname; };
QList<nick> nicklist;
foreach (nick n, nicklist)
{
if (n.name == "testname")
{
nicklist.removeOne(n);
break;
}
}
How can I remove struct from Qlist ?
example (not working)
struct nick { QString name; QString subname; };
QList<nick> nicklist;
foreach (nick n, nicklist)
{
if (n.name == "testname")
{
nicklist.removeOne(n);
break;
}
}