[Qt-interest] QAbstractFileEngine problems

Eric Landuyt eric at datarescue.be
Thu Jul 8 08:16:53 CEST 2010


Hello Jason,

Thursday, July 8, 2010, 1:28:47 AM, you wrote:
JH> Anyway, there is no QAbstractFileEnginge::writeData() according to the docs.

You're right, I confused both QAbstractFileEngine & QIODevice heheh
(in fact I even wrote a QIODeviceWrapperFileEngine class here ;).
write() is what you must overload.

JH> Ok, I seem to have found it. Qafe::flush returns -1 by default. I can fix
JH> that by going unbuffered, but I'd rather not. What should my flush look like?

I simply returns true, and never got any problem with that.

Cheers,

--
Eric Landuyt, Developer - mailto:eric at datarescue.be
DataRescue sa/nv - http://www.datarescue.com




More information about the Qt-interest-old mailing list