You can provide your own overload of operator<<()
:
QDebug& operator<<(QDebug& d, long double f)
{
return d << static_cast<double>(f);
}
This won't show you any extra precision, of course, but may be what you need.
Be aware, however, that a future version of Qt might implement such a function, putting you in violation of the One-Definition Rule. To avoid this, you should guard it with an appropriate #if
test for the exact Qt version (or range of versions) that you have verified do not provide a conflicting definition. Also, please consider contributing your implementation to Qt.