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

Some include files are not found/parsed in QtCreator

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Cannot Reproduce
    • Affects Version/s: Qt Creator 3.3.0, Qt Creator 3.4.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Windows 7 x64, CMake 3.1, Mingw32 + Qt 5.4.0

      Description

      Some include files, automatically generated with a CMake project (ui_* generated with CMake macros) or relative includes are not found by the editor. They are underlined and are not parsed. However, project compiles fine.

      Ex:


      ...
      SET(plugin_uis
      VideoConfigPluginWidget.ui
      VideoConfigView.ui
      VideoCameraView.ui
      VideoConfigWizardDeviceTypeSelection.ui
      )

      SET(plugin_qrc
      VideoConfigPlugin.qrc
      )

      1. generate rules for building source files from the resources
        QT5_ADD_RESOURCES(plugin_srcs_qrc ${plugin_qrc})

      #Generate .h files from the .ui files
      QT5_WRAP_UI(plugin_moc_uis ${plugin_uis})

      #This will generate moc_* for Qt
      QT5_WRAP_CPP(plugin_moc_srcs ${plugin_headers})

      INCLUDE_DIRECTORIES(
      ./
      ${CMAKE_CURRENT_BINARY_DIR}
      ${CMAKE_SOURCE_DIR}/../common/thirdParty/ffmpeg/WIN32/include
      )
      ...

      #Core GUI base library
      ADD_LIBRARY(${PLUGIN_NAME} SHARED ${plugin_srcs} ${plugin_headers} ${plugin_moc_srcs} ${plugin_moc_uis} ${plugin_srcs_qrc})

      ...


      In this example all ui_* are not found and all files from ${CMAKE_SOURCE_DIR}/../common/thirdParty/ffmpeg/WIN32/include.

      This was working fine with previous version of QtCreator.

      Thanks for your help.

        Attachments

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

          Activity

            People

            Assignee:
            hunger Tobias Hunger
            Reporter:
            doumdi Dominic Létourneau
            Votes:
            2 Vote for this issue
            Watchers:
            10 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes