Вопрос

is there a simple method to copy a QList<Class*> from position a to b in a new QList?

I tested:

  QList<Class*> newList(list.begin()+5,list.end());

but it doesn't work. I get the error: "No matching call...."

can someone help me?

Greetings

Это было полезно?

Решение

QList<Class*> newList(list.mid(0,5));
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top