Dear All:
I use QPair in QVector when developing .
But there's some problem.
here is text example:
void test()
{
QVector< QPair<
int ,
QString > > first;
QVector< QPair<
int ,
QString > > second;
for(int iIdx = 0; iIdx <5 ; ++iIdx )
first.
push_back(QPair<
int ,
QString >
(iIdx ,
"aaa") );
qCopy(first.begin(), first.end(), second.begin()); // it occurred errors
}
void test()
{
QVector< QPair< int , QString > > first;
QVector< QPair< int , QString > > second;
for(int iIdx = 0; iIdx <5 ; ++iIdx )
first.push_back(QPair< int , QString >(iIdx , "aaa") );
qCopy(first.begin(), first.end(), second.begin()); // it occurred errors
}
To copy to clipboard, switch view to plain text mode
Is there any suggestion for me if I would like to copy from one vector to another ??
Thank you~~
Bookmarks