Solved How to use a long double for QTextstream
-
Hi,
d
is along double
. when I use the statement below, I get the following error.QString s; QTextStream ss(&s) ss << d;
ambiguous overload for 'operator<<' (operand types are 'QTextStream' and 'long double')
Is there any way to use it like that please?
-
Hi,
You likely should implement the
operator<<
for that type. You can take a look at the operator for the double type.Hope it helps.
-
Thank you.