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. Qt Creator completion stopped working
QtWS25 Last Chance

Qt Creator completion stopped working

Scheduled Pinned Locked Moved Solved Installation and Deployment
4 Posts 3 Posters 2.0k 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.
  • P Offline
    P Offline
    pauledd
    wrote on 3 May 2018, 06:54 last edited by
    #1

    Hi
    I use Qt Creator 4.5.2 (most up to date on gentoo...) Qt 5.9.4(GCC 6.4.0, 64 bit).
    I cant remember when exactly it happened but my code completion stopped working somehow.
    The problem is if I declare a member variable in my header file
    and then want to initialize it in my cpp, autocompletion doesn't list the variable.

    0_1525330381922_Peek 2018-05-03 08-49.gif

    But if I then save and close Qt Creator and reopen it suddenly the variable gets listed in the autocompletion.
    Any ideas anyone?

    K 1 Reply Last reply 3 May 2018, 07:19
    0
    • P pauledd
      3 May 2018, 06:54

      Hi
      I use Qt Creator 4.5.2 (most up to date on gentoo...) Qt 5.9.4(GCC 6.4.0, 64 bit).
      I cant remember when exactly it happened but my code completion stopped working somehow.
      The problem is if I declare a member variable in my header file
      and then want to initialize it in my cpp, autocompletion doesn't list the variable.

      0_1525330381922_Peek 2018-05-03 08-49.gif

      But if I then save and close Qt Creator and reopen it suddenly the variable gets listed in the autocompletion.
      Any ideas anyone?

      K Offline
      K Offline
      koahnig
      wrote on 3 May 2018, 07:19 last edited by
      #2

      @pauledd

      I have noticed this already a while ago. So it is not a new issue with the creator version.

      Especially with larger projects, it is a nuisance. I do no recall that you have to close and reopen creator, but basically to give it a chance to detect changes. Saving the files and eventually does cure as well the problem.

      I am not the expert for this functionality, but I rated it as a balance issue between always active and consume too much cpu or wait once in a while for the update in auto-completion.

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

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pauledd
        wrote on 3 May 2018, 07:30 last edited by pauledd 5 Mar 2018, 07:30
        #3

        Problem solved, sorry for my stupidity...
        I included the header the wrong way:
        #include <gaugeframe.h> FALSE
        #include "gaugeframe.h" GOOD

        autocompletion works again.

        1 Reply Last reply
        1
        • J Offline
          J Offline
          J.Hilk
          Moderators
          wrote on 3 May 2018, 07:37 last edited by
          #4

          Also a good way to force the auto comple update, is changing between compilers.


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply
          1

          3/4

          3 May 2018, 07:30

          • Login

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