Hi,
I have little problem.
I’m trying to store pointers in vector, but when I call vector, it returns hex values like 0xf2f744
Code:
QVector<QVariant*> cont;
int ex = 2;
cont.push_back(reinterpret_cast<QVariant*>(&ex));
ex = 10;
qDebug() << cont.last();
Thanks for help
↧