Convert QFile to FILE*
General and Desktop
3
Posts
2
Posters
6.3k
Views
1
Watching
-
HI guys,
I m trying to convert a QFile to FILE* but i get en error :
@-1
Failed to open goforward.raw: Bad file descriptor
The program has unexpectedly finished.@this is my code:
@QFile myFile("goforward.raw");
int FileDescriptor = myFile.handle();
qDebug() <<FileDescriptor;
FILE* fh = fdopen(FileDescriptor, "rb");@