https://www.copperspice.com/docs/cs_api/class_qstringparser.html#a07fa9007c038539e56ce22ca6347d416
The bad code was using the sprintf() family and %p to get a hex address. So far I haven't been able to properly build the message.
Code: Select all
QTreeWidgetItem *item
msg = QStringParser::formatArg( msg, reinterpret_cast<void *>(item), 0, 16);
no known conversion for argument 1 from ‘void*’ to
msg = QStringParser::formatArg( msg, item, 0, 16);
no known conversion for argument 1 from ‘QTreeWidgetItem*’
Code: Select all
T QStringParser::formatArg ( const T & str,
V value,
int fieldwidth = 0,
char format = 'g',
int precision = 6,
QChar32 fillChar = QChar32(' ')
)