Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QtCreator ignores changes in newly added qml file
Forum Updated to NodeBB v4.3 + New Features

QtCreator ignores changes in newly added qml file

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 2.1k Views 1 Watching
  • 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.
  • _ Offline
    _ Offline
    __Alex__
    wrote on last edited by
    #1

    Hello everyone,

    I am using QtCreator 2.4.1, based on Qt 4.7.4, on Ubuntu 64 Bit on a Virtual Machine (VirtualBox). I am using a qrc-file to keep track of my qmls.

    When I add a new qml file to my project, QtCreator should copy it to the build directory whenever I build the project and my new file has changed, but that does not happen unless I change another qml file as well or do a rebuild. What must I do to make QtCreator check my newly added qml file for changes whenever I hit the build button?

    Sometimes I am able to avoid this problem by adding the file to the qrc-list by hand instead of using QtCreator's menu, but it doesn't work everytime.

    Alex

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leonardo.ramosantos
      wrote on last edited by
      #2

      Well,

      It can happen when you click in the Debug or Run button of the "Debug Pallete". When you click in this buttons qt just run the aplication compilated.

      However, if you press F5 or click Rebuild, Qt will search for changes on application files, and then will recompile files that need.

      []'s

      1 Reply Last reply
      0
      • _ Offline
        _ Offline
        __Alex__
        wrote on last edited by
        #3

        When I build, I use Ctrl-R. For 99% of my qml files Qt re-copies them to the build folder whenever I change them.

        But for the other 1% it doesn't happen unless I rebuild and that's my problem.

        1 Reply Last reply
        1

        • Login

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