[Qt-interest] QML compilation ?
Sean Harmer
sean.harmer at maps-technology.com
Mon Jul 19 12:34:43 CEST 2010
On Monday 19 July 2010 11:16:09 Stephen Collyer wrote:
> On 19 July 2010 10:56, Sean Harmer <sean.harmer at maps-technology.com> wrote:
> > My first thought is to add it to your application's resource file and
> > compile
> > it into your app like any other resource. You can then access the qml
> > string
> > via the usual method e.g. QFile myQmlFIle( ":/path/to/my/qml/file" ).
>
> Can QUrl access a resource file though ? I expect so, but I've
> never tried it, and the docs don't seem to mention it explicitly.
Yes, The "resource system" docs link to QUrl but I agree that the QUrl docs
should mention it explicitly too.
The Qml docs mention it though. Look at the QRC Resources section of this
page:
http://doc.qt.nokia.com/4.7-snapshot/qdeclarativenetwork.html
Cheers,
Sean
More information about the Qt-interest-old
mailing list