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

Intermediate update of ui_* header files does not work with ClangCodeModel

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: Qt Creator 4.15.1, Qt Creator 5.0.0-beta1
    • Fix Version/s: Qt Creator 5.0.0-beta1
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None
    • Commits:
      4d27740bafe51de363275a36e81379063dfd8b37 (qt-creator/qt-creator/5.0)

      Description

      How to reproduce:

      • create a minimal Widgets Application (qmake or cmake)
      • what does work:
        • open the .ui file, add/rename a component
        • switch to the widget.cpp file with or without saving the .ui file
        • the changes done to the .ui file are visible to the code in widget.cpp, e.g. in completion and error checking
      • what does not work:
        • the above, after a build of the project has been done. The generated files from the build system override the internal result of the ExtraCompilers. The ExtraCompilers themselves run and work fine.

      This works correctly with the built-in code model (-noload ClangCodeModel).
      Also works correctly for the global index (built-in, can be tested by changing e.g. the objectName of the widget class, and using locator "c" to see if the new class name is there).

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              kandeler Christian Kandeler
              Reporter:
              con Eike Ziller
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes