[Interest] Fwd: Platform dependent *.qrc entries

Bernhard B schluchti at gmail.com
Tue Jan 3 21:59:09 CET 2017


Hi Jason,

thanks for your answer!

Maybe I am misunderstanding something here, but isn't that something that
happens at runtime? I always thought that all the platform dependent
resources are bundled in the resources file and the file selector only
selects the right resource for the platform the application is running on.

2017-01-03 21:41 GMT+01:00 Jason H <jhihn at gmx.com>:

> File Selectors? http://www.ics.com/blog/mastering-qt-file-selectors
>
> +{selector} /
>
>
> *Sent:* Tuesday, January 03, 2017 at 3:31 PM
> *From:* "Bernhard B" <schluchti at gmail.com>
> *To:* interest at qt-project.org
> *Subject:* [Interest] Platform dependent *.qrc entries
> Hi,
>
> is it somehow possible to add a resource to the resources file (*.qrc)
> depending on the targeted platform? I have a few resources that are only
> needed on specific targets (e.q Android, iOS). Now I would like to make
> sure that those resources are only added on the targeted platform (to
> prevent that the executable gets to big). I know, that I can use different
> *qrc files (depending on the targeted platform) and include them when
> needed.
>
> e.q:
>
> android{
>     RESOURCES += android.qrc
> }
>
> ios{
>    RESOURCES += ios.qrc
> }
>
> But as most of the resources are shared between all targets, keeping those
> resource files in sync is really difficult. Is there a possibility to use
> just one *.qrc file and  specify platform dependent entries in a different
> way?
>
> Thanks,
> Bernhard
> _______________________________________________ Interest mailing list
> Interest at qt-project.org http://lists.qt-project.org/ma
> ilman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170103/3b772743/attachment.html>


More information about the Interest mailing list