Results 1 to 5 of 5

Thread: using two .qrc files in one application

  1. #1
    Join Date
    Jan 2011
    Location
    Pearl of the Orient Seas
    Posts
    40
    Thanks
    12
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default using two .qrc files in one application

    Hi,

    A pleasant day to all!

    Can anyone kindly please tell me if I can use two .qrc files in one QML application? The application I am currently working on requires a lot of images to be loaded on every scene. And when I put all the image files in one .qrc file, I get an error ( please see this post ). Though the solution on the thread worked for me, I would like to using two qrc files instead of just one.

    So I think that if I separated the images in two .qrc files, I won't be getting the error, but I am not sure about this.

    Is it possible to have a two or more .qrc files in one QML application?

    Thank you very much for your answer.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: using two .qrc files in one application

    You can use as many qrc files as you want, however if your device doesn't have enough memory to load all images at once while the binary is loaded, using two qrc files won't change anything.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    aya_lawliet (4th October 2011)

  4. #3
    Join Date
    Jan 2011
    Location
    Pearl of the Orient Seas
    Posts
    40
    Thanks
    12
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default Re: using two .qrc files in one application

    Thank you very much wysota. I will take note of that

  5. #4
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: using two .qrc files in one application

    It won't help during program execution, but can help during compilation - I remember having so many images in one .qrc file, so that my machine was not able to handle the compilation of qrc_*.cpp, it took more than 2Gb of RAM. Splitting the resources into more .qrc files fixed this problem.

  6. The following user says thank you to stampede for this useful post:

    aya_lawliet (4th October 2011)

  7. #5
    Join Date
    Jan 2011
    Location
    Pearl of the Orient Seas
    Posts
    40
    Thanks
    12
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default Re: using two .qrc files in one application

    @stampede

    thank you thank you very much for the input. it is greatly appreciated

Similar Threads

  1. Replies: 14
    Last Post: 2nd August 2011, 13:42
  2. QML files in QT application
    By nageshvk in forum Qt Quick
    Replies: 8
    Last Post: 1st December 2010, 08:03
  3. To identify executable and other files in QT Application
    By augusbas in forum Qt Programming
    Replies: 3
    Last Post: 8th March 2010, 19:29
  4. Installation of application data files
    By anderssonj in forum Qt Programming
    Replies: 1
    Last Post: 4th July 2007, 17:02
  5. How to open IGES files in Qt Application?
    By Shuchi Agrawal in forum Newbie
    Replies: 1
    Last Post: 21st February 2007, 02:06

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.