Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有一种简单的方法可以将 aQList<Class*>从位置 a 复制到新 QList 中的 b?
QList<Class*>
我测试过:
QList<Class*> newList(list.begin()+5,list.end());
但它不起作用。我收到错误消息:“没有匹配的呼叫......”
有人能帮我吗?
问候
QList<Class*> newList(list.mid(0,5));