Qt 4.5 QString have a way to output a null terminaded string ( QString.cstr() )