On 13 January 2014 13:25, Ola Røer Thorsen <o...@silentwings.no> wrote: > > In the documentation for QResource, it says that the data returned by r.data > may be compressed. So is this way of reading the shader source code safe at > all times? Shouldn't it check with r.isCompressed and if so, uncompress? Is > there some assumption here that such small text files aren't compressed?
I think the example is just doing it wrong, it should instead load the resource file contents using QFile into two QByteArrays into the ctor and then return the QByteArrays' contents there. -- Giuseppe D'Angelo _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest