copying a std::vector to a qvector

后端 未结 4 1203
囚心锁ツ
囚心锁ツ 2021-02-20 04:40

I tried copy content of one vector to a QVector using the following

std::copy(source.begin(), source.end(), dest.begin());

However

4条回答
  •  北海茫月
    2021-02-20 05:21

    Look at:

    std::vector QVector::toStdVector () const
    
    QVector QVector::fromStdVector ( const std::vector & vector ) [static]
    

    From docs

提交回复
热议问题