Using QFile on a open linux file descriptor
General and Desktop
4
Posts
2
Posters
3.3k
Views
1
Watching
-
wrote on 27 Feb 2013, 15:43 last edited by
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
-
wrote on 28 Feb 2013, 03:28 last edited by
There are several obvious QFile::open() overloads taking FILE* integer file descriptors
-
wrote on 28 Feb 2013, 04:12 last edited by
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
-
wrote on 28 Feb 2013, 06:34 last edited by
QFile won't do that even for files entirely managed by Qt.
http://qt-project.org/doc/qt-4.8/qfile.html#signals
1/4