double dd;...for(int i = 0; i < sizeof(double); ++i) qDebug()<<((char*)&dd)[i];
C++ (Qt)double dd = 5;QByteArray bytes = QByteArray::fromRawData((const char *)&dd, sizeof(dd));