Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator - No automatic addition of source files to a project?

Qt Creator - No automatic addition of source files to a project?

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 2 Posters 1.4k Views 2 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.
  • O Offline
    O Offline
    OmegaPhil
    wrote on last edited by
    #1

    I was editing a source file under a directory that is part of a Qt Creator project - when I did a project-wide search, I realised that Qt Creator was refusing to find any hits in the file! After some messing around I realised that Qt Creator didn't consider the file part of the current project - I've since discovered the Projects view, right-click -> Add Existing Directory...

    Do I have to go through the process of adding source files every time a file is not created in Qt Creator (i.e. copied in)/someone else adds a file to a project? In the current example, every source file under the main directory is part of the project without question.

    Thanks

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      HI and welcome to devnet,

      Is the file listed in your pro file ?

      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
      • O Offline
        O Offline
        OmegaPhil
        wrote on last edited by
        #3

        Sorry, even though I'm subscribed I didn't get an email saying you responded??

        This is not a Qt project, a bogstandard autotools one - I'm assuming the equivalent is '<projectname>.files', at the top-level directory? Looking at this, I'm assuming that Qt Creator doesn't really have a 'project directory' here and just a raw collection of monitored files?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          For the mail thing, check your account settings, it might be off.

          It might be a glitch in the autotools plugin

          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

          • Login

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