Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-17002

ClangCodeModel: Missing file "ui_mainwindow.h" marked as error

    XMLWordPrintable

Details

    • d52ac9a7084df220a5349468703c11cc1c0794c4 (qt-creator/qt-creator/4.8)

    Description

      1. Enable the ClangCodeModel plugin.
      2. Create a new Qt Widgets Application project.
      3. Open the file mainwindow.cpp.
        The line
        #include "ui_mainwindow.h"
        

        is marked as an error: "fatal error: 'ui_mainwindow.h' file not found"

      While this is technically correct, it is nothing the user could fix. The file will be created when building the project, so I think this error message is confusing. It should be hidden.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kosjar Nikolai Kosjar
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes