Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.8.6, 5.3.0
-
None
-
Windows (MSVC 2013), Linux gcc 4.6
Description
It affects WId, which is annoying:
5.3.0 short via qDebug 0xf foo: short via qCDebug 0xf "short via QTextStream 0xf" int via qDebug 0xf foo: int via qCDebug 0xf "int via QTextStream 0xf" unsigned int via qDebug 0xf foo: unsigned int via qCDebug 0xf "unsigned int via QTextStream 0xf" long via qDebug 0xf foo: long via qCDebug 0xf "long via QTextStream 0xf" short via qDebug 0xf foo: short via qCDebug 0xf "short via QTextStream 0xf" unsigned __int64 via qDebug 15 foo: unsigned __int64 via qCDebug 15 "unsigned __int64 via QTextStream 0xf" __int64 via qDebug 15 foo: __int64 via qCDebug 15 "__int64 via QTextStream 0xf"
produced by
template <class T> void debugHexNumber() { T n = 15; qDebug() << typeid(T).name() << "via qDebug" << hex << showbase << n; #if QT_VERSION >= 0x050000 qCDebug(lC) << typeid(T).name() << "via qCDebug" << hex << showbase << n; #endif QString m; QTextStream str(&m); str << typeid(T).name() << " via QTextStream " << hex << showbase << n; qDebug() << m << '\n'; }
for quintptr, WId