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. Disable Auto Header File Completion

Disable Auto Header File Completion

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
3 Posts 2 Posters 511 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.
  • Grit ClefG Offline
    Grit ClefG Offline
    Grit Clef
    wrote on last edited by Grit Clef
    #1

    Qt and tools I'm using:

    Qt 5.15.16
    QtCreator 8
    clangd 19.1.7
    

    I noticed that QtCreator would automatically add the headers when you enter some types. For example, if I type QImage and then press Enter, clangd adds #include "qimage.h" on the top of the file. However I don't think I need it. Clangd will adds duplicated headers whether the correct file has been already included or not.
    So I want to disable this feature if I can?

    1 Reply Last reply
    0
    • kkoehneK Offline
      kkoehneK Offline
      kkoehne
      Moderators
      wrote on last edited by
      #2

      Check your ClangD settings in Qt Creator. There's an option 'Insert header files on completion' , which you most likely enabled at one point.

      Director R&D, The Qt Company

      1 Reply Last reply
      4
      • Grit ClefG Offline
        Grit ClefG Offline
        Grit Clef
        wrote on last edited by
        #3

        Just the case, thanks!

        1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher has marked this topic as solved on

        • Login

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