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. Autocomplete and "Find Usages" to stopped working properly in QtCreator 2.4.0 (on Windows 7 64-bit)

Autocomplete and "Find Usages" to stopped working properly in QtCreator 2.4.0 (on Windows 7 64-bit)

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

    I use QtCreator 2.4.0 on Windows 7 64-bit. Until a couple of days ago autocomplete was working fine.

    • Suddenly it no longer shows any completion suggestions for many member variables in various classes.
    • Also I can no longer get the hyperlink to definitions and declarations of members and methods by holding down Ctrl and hovering over over them. This occurs for some items, not all.
    • In addition, the "Find Usages" command no longer works for those same items that have the above problem.

    Is there a QtCreator-generated database that it produces for each session or each project? I could try deleting those to see if they get recreated properly. At least that's what I had to do in Visual Studio.

    I have tried Tools->C++->Update Code Model, but that did not help. I also deleted the session file C:\Users<username>\AppData\Roaming\Nokia\qtcreator<session>.qws, and recreating it - that did not help.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bmanc
      wrote on last edited by
      #2

      Found the issue, although I'm not sure if this considered a QtCreator bug or not.

      I had 3 projects in my session. Two of those projects have a class called MainWindow. When I Ctrl+clicked on the constructor declaration in one project, it took me to the MainWindow constructor definition in the alternate project. Since the second project does not have all the members and methods of the first, the hyperlinking and connectivity was all messed up.

      The question is why was QtCreator pairing the declarations and definitions from two different projects even though each project had both declarations and definitions for the respective classes.

      I understanding using namespaces would have prevented this, but regardless of using the good practice or not, it seems that QtCreator should have paired it correctly (after all it was working fine for the longest time).

      1 Reply Last reply
      0
      • K Offline
        K Offline
        koahnig
        wrote on last edited by
        #3

        Thanks for sharing the reason of your problem.

        I am not sure either, if it is bug or something has been messed up over time. I will see, that someone knowledgable in Qt Creator will have a look on your post.

        Vote the answer(s) that helped you to solve your issue(s)

        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