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

Qt Creator doesn't use existing SOURCE/HEADER when adding new files

    XMLWordPrintable

Details

    • 6c03121668f0aad18178a042e5efc2666bb62303

    Description

      When adding new Class or file to exciting project, Qt Creator add new SOURCE and HEADER to the .pro file instead of using existing ones, here is an example of my pro file after adding 3 classes to it:

      #-------------------------------------------------
      #
      # Project created by QtCreator 2012-11-24T19:28:11
      #
      #-------------------------------------------------
      
      QT       += core gui
      
      greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
      
      TARGET = deeel
      TEMPLATE = app
      
      
      SOURCES += main.cpp\
              mainwindow.cpp
      
      HEADERS  += mainwindow.h
      
      FORMS    += mainwindow.ui
      
      HEADERS += \
          test.h
      
      SOURCES += \
          test.cpp
      
      HEADERS += \
          othertest.h
      
      SOURCES += \
          othertest.cpp
      
      HEADERS += \
          lasttest.h
      
      SOURCES += \
          lasttest.cpp
      

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            boussouira Ahmed Saidi
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes