Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Adding qml images to qrc slow down building process
QtWS25 Last Chance

Adding qml images to qrc slow down building process

Scheduled Pinned Locked Moved Unsolved General and Desktop
qmlimagesubuntu 14.04building
4 Posts 2 Posters 1.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AlvaroGuzman
    wrote on 6 Jan 2016, 09:30 last edited by
    #1

    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)

    -Ubuntu:
    14.04.03

    Thanks in advanced

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 6 Jan 2016, 21:08 last edited by
      #2

      Hi,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AlvaroGuzman
        wrote on 7 Jan 2016, 07:36 last edited by
        #3

        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!

        Alvaro

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 7 Jan 2016, 21:42 last edited by
          #4

          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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          1/4

          6 Jan 2016, 09:30

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved