Using QFile on a open linux file descriptor
-
I have a feeling some one must have asked this before but darn if I could find it. I have File Descritpor (int value) . Can I convert that to a QFile. I see QFile::open(int OpenMode); but this file is already open. Anyone know if it is possible, and if it is possible can you tell me how
Any advise appreciated.
-David
ps this is with QT 4.8
-
There are several obvious QFile::open() overloads taking FILE* integer file descriptors
-
Yes, but do they assume the file desciptor is not open already. Because I tried doing a QFIle open but the readyRead signal never gets emitted when I know data has been written to the file
-
QFile won't do that even for files entirely managed by Qt.
http://qt-project.org/doc/qt-4.8/qfile.html#signals