ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #01818
Re: Autoupdating QML files stored in resource
Trust me it isn't! You can have fully working modules with qmldir files and
images and so on in resources (that means, you will not need to reference
images by ":" or "qrc:" scheme, but plainly by the relative path), even
referencing plugin shared libraries (if those go to a separate folder).
One can even set up a build env where he uses the same qml module w/o
compiling it into resources from qmlviewer (for quick tests), and also
links the qrc into arbitrary number of binary apps!
You just have to cook them properly :)
On Fri, Apr 26, 2013 at 1:25 PM, <mrqtros@xxxxxxxxx> wrote:
> Storing qml files in qrc is bad practice. I can't give link because I have
> limited internet access. But trust me =)
>
> 26.04.13 13:06 Alberto Mardegan написал(а):
> On 04/26/2013 11:59 AM, Николай Шатохин wrote:
> > Hello.
> >
> > I store my qml files in qrc. But I have problem with it. When I edit
> > some file it will not update in resource until I edit and save this
> > resource. Is it possible to autoupdate it at every project build?
>
> Whenever you create a new QML file, you need to re-run "qmake". It's a
> known bug [0].
> However, this is only a problem when a file is first added; if you then
> modify the same file and run "make", it should rebuild the resource file
> when your QML file changes.
>
> Ciao,
> Alberto
>
> [0] https://bugreports.qt-project.org/browse/QTCREATORBUG-1627
>
>
> --
> Mailing list: https://bugreports.qt-project.org/browse/QTCREATORBUG-1627
> Post to : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://bugreports.qt-project.org/browse/QTCREATORBUG-1627
> More help : https://bugreports.qt-project.org/browse/QTCREATORBUG-1627
>
>
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help : https://help.launchpad.net/ListHelp
>
>
References