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. Auto-completion and pre-compiled headers

Auto-completion and pre-compiled headers

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 2 Posters 1.3k 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.
  • R Offline
    R Offline
    rosetter
    wrote on last edited by
    #1

    I've been using Creator for quite a while now and I'm determined to fix the most annoying of issues -- missing/erratic autocompletion when using precompiled headers.

    This has been an issue forever, but currently I'm using 3.1.1 from the 5.3 distribution on a Mac (same problem on Windows 7). My .pro file contains "PRECOMPILED_HEADER = <file>" and then "CONFIG += precompiled_header". It builds fine. I've tried switching to the new clang code model, with little effect.

    clang code model: wavy red underlines indicating what would be errors if there were no PCH. no completion.
    builtin code model: no red underlines (error indications), but also no completion.

    I'm also not clear on how to force a rebuild of the information generated by the code model. I've tried cleaning, rebuilding, running qmake, closing and re-opening the project/session/creator itself.

    In my adventures I have gotten the following message frequently:
    "updatePchInfo: switching to none"

    That's about it. No idea.

    Does completion from PCHs work for anyone?

    Thanks,
    Tyler

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

      Hi,

      You should also ask this on the qt-creator mailing list. You'll find there Qt Creator's developers/maintainers (this forum is more user oriented)

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

        Thanks for the suggestion.. I think I'll do that!

        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