I serialize "double" data type and get an error though
QDataStream & operator<< ( double f )
operator is defined. Here is the error message:
error: conversion from 'double' to 'const QChar' is ambiguous
Did you meat this situation or understand why it can be like this?
It sounds like it can't see the operator for double, so it's trying to implicitly create a QChar
from the double to send to the stream, but QChar
has multiple constructors that could possibly match.
Make sure that your header includes are all correct.
Can you show us the code where you're trying to serialize the double?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With