Re: [Interest] Routing all QML file requests through a custom resource provider

2016-06-20 Thread Jason H
igand" <flamaros.xav...@gmail.com> To: "Jason H" <jh...@gmx.com> Cc: "Max Savenkov" <max.saven...@gmail.com>, "<interest@qt-project.org>" <interest@qt-project.org> Subject: Re: [Interest] Routing all QML file requests through a custom resource p

Re: [Interest] Routing all QML file requests through a custom resource provider

2016-06-20 Thread Michael Sué
Hi, > What does adding a qrc file to RESOURCES actually do (besides triggering > resource compiler)? I'm looking for an understanding here. Files like "relativ/path/to/qrc/file/image.png" in, say, "main.qrc“ will appear in a file "qrc_main.cpp" in binary form. Please find it in your build-tree

Re: [Interest] Routing all QML file requests through a custom resource provider

2016-06-17 Thread Xavier Bigand
there no way to make it work? What >> does adding a qrc file to RESOURCES actually do (besides triggering >> resource compiler)? I'm looking for an understanding here. >> >> 2016-06-17 19:23 GMT+03:00 Jason H < <http://jh...@gmx.com>jh...@gmx.com>: >> >>&g

Re: [Interest] Routing all QML file requests through a custom resource provider

2016-06-17 Thread Max Savenkov
To: "Max Savenkov" <max.saven...@gmail.com <http://max.saven...@gmail.com>>, "<interest@qt-project.org <http://interest@qt-project.org>>" <interest@qt-project.org <http://interest@qt-project.org>> Subject: Re:

Re: [Interest] Routing all QML file requests through a custom resource provider

2016-06-17 Thread Xavier Bigand
itry Volosnykh" <dmitry.volosn...@gmail.com>, "< > interest@qt-project.org>" <interest@qt-project.org> > > *Subject:* Re: [Interest] Routing all QML file requests through a custom > resource provider > OK, but if I do not use QtCreator, is there no way t

Re: [Interest] Routing all QML file requests through a custom resource provider

2016-06-17 Thread Max Savenkov
Sent:* Friday, June 17, 2016 at 12:37 PM > *From:* "Max Savenkov" <max.saven...@gmail.com> > *To:* "Jason H" <jh...@gmx.com> > *Cc:* "Dmitry Volosnykh" <dmitry.volosn...@gmail.com>, "< > interest@qt-project.org>" <interest@qt-p

Re: [Interest] Routing all QML file requests through a custom resource provider

2016-06-17 Thread Max Savenkov
> To: "Max Savenkov" <max.saven...@gmail.com>, "<interest@qt-project.org>" < > interest@qt-project.org> > Subject: Re: [Interest] Routing all QML file requests through a custom > resource provider > > Hi, Max! > > To be honest, I

Re: [Interest] Routing all QML file requests through a custom resource provider

2016-06-17 Thread Jason H
Savenkov" <max.saven...@gmail.com>, "<interest@qt-project.org>" <interest@qt-project.org> Subject: Re: [Interest] Routing all QML file requests through a custom resource provider Hi, Max!   To be honest, I did not understand in all the details what you are trying to

Re: [Interest] Routing all QML file requests through a custom resource provider

2016-06-17 Thread Max Savenkov
1) I'm not using QtCreator, but Visual Studio 2) Even if I did, adding file to RESOURCES variable would not allow me to put it inside my own package. While it might be OK to have separate resource packages for the main game and Qt, I'd like to avoid it if possible. 2016-06-17 13:58 GMT+03:00

Re: [Interest] Routing all QML file requests through a custom resource provider

2016-06-17 Thread Dmitry Volosnykh
Usually, you don't need to do anything to "register" you resources file. Basically, you add .qrc filename to RESOURCES variable inside qmake's project file. After that you are able to refer to its contents via "qrc" protocol (in terms of URI) for either QFile or QUrl, etc. By the way, have you