This is, of course, only for developer consumption.
qDebug() << aNodePtr;
0x2197f50 // for a non-QObject
JB_Node(0x2197f50) // if JB_Node is a QObject
qDebug() << aNodePtr;
0x2197f50 // for a non-QObject
JB_Node(0x2197f50) // if JB_Node is a QObject
To copy to clipboard, switch view to plain text mode
works fine here. You can even provide your own operator<<() to format it however you want:
QDebug operator<<(QDebug dbg, JB_Node *node) {
dbg.
nospace() <<
QString("Custom format [addr = %1 ]").
arg(quintptr
(node
),
0,
16);
return dbg.space();
}
QDebug operator<<(QDebug dbg, JB_Node *node) {
dbg.nospace() << QString("Custom format [addr = %1 ]").arg(quintptr(node), 0, 16);
return dbg.space();
}
To copy to clipboard, switch view to plain text mode
Bookmarks