Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

QVector filled with pointers return hex value

$
0
0
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

Viewing all articles
Browse latest Browse all 13965