I'm not sure if it belongs here or in general programming but here it goes.

Is there a way to get a std::istream/std::ostream from a QFile object, or anything
provided from a QFile object?

Or should I only store the filename and open it as a std::fstream?

I need the std:istream/std::ostream objects for an external library.