Adding qml images to qrc slow down building process

  • Hello everyone,

    I'm having a very odd issue with QtCreator. I have a project with several qml files. Each one of them uses several .png images. At first I tried to build without having added the images to the qrc file, so It didn't build at all as it couldn't find any of this images.
    But after adding them in the qrc, It came another strange and unexpected problem. The building process takes several minutes to end, and It freezes the PC and makes it enter in a "halt" state, as if it where overcharging the system resources.
    I have never experienced such a problem and as the building process finally ends (after nearly 20 minutes building) without problems I don't know where the problems could come from.

    -Qt Creator version:
    Qt Creator 3.3.2 (opensource)
    Based on Qt 5.4.1 (GCC 4.6.1, 64 bit)


    Thanks in advanced

  • Lifetime Qt Champion


    How many images are we talking about ? Which size are they ?

  • First of all, thanks for the reply.

    We are talking about nearly 49 images, with an average size of 250KB.
    Does this files have something to do with the building process? I hardly had imagined it!


  • Lifetime Qt Champion

    Yes they do. The files you put in a qrc file are compiled in your project. Each file is translated to a text version so currently you are building a file that weights more than 12MB.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.