Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QT Creator 2.0 pro file issue
QtWS25 Last Chance

QT Creator 2.0 pro file issue

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 3 Posters 5.5k 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.
  • Z Offline
    Z Offline
    zanglin
    wrote on last edited by
    #1

    My project has been using Qt Creator 1.3 for a while. We have several .pro files created for each of our sub projects, but the header and source files specification uses *.h and *.cpp. When we tried to update to Qt Creator 2.0, we are unable to import the sources and headers. If we explicitly name the classes .h and .cpp's, it will import correctly, but this would require a massive amount of changes to our .pro files.

    Is there any way around this? Is there a flag in 2.0 that allows the use of *.h and *.cpp specification in .pro files?

    Thanks

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on last edited by
      #2

      There is setting for default extensions for headers and source files if you are asking about it.

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        zanglin
        wrote on last edited by
        #3

        I don't think I need the default extensions, I'm curious as to why creator 2.0 doesn't accept this in the .pro files:

        HEADERS += *.h
        SOURCES += *.cpp

        but rather prefers I list them as:

        HEADERS += class1.h
        SOURCES += class1.cpp

        I'd much rather use the * notation

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          This issue was discussed on the Qt creator ML "here":http://lists.trolltech.com/pipermail/qt-creator/2010-August/007497.html.

          The "bug report is here":http://bugreports.qt.nokia.com/browse/QTCREATORBUG-1364. The fix will be in the upcoming Qt Creator 2.0.1 release.

          The most important mail in this thread seems to be "this one":http://lists.trolltech.com/pipermail/qt-creator/2010-August/007503.html, recommending against doing this in the first place you will need to rerun qmake manually.

          1 Reply Last reply
          0
          • Z Offline
            Z Offline
            zanglin
            wrote on last edited by
            #5

            The version I downloaded (http://labs.trolltech.com/blogs/2010/08/25/qt-creator-201/) says that it is version 2.0.1. Has this been pushed back?

            1 Reply Last reply
            0
            • ? This user is from outside of this forum
              ? This user is from outside of this forum
              Guest
              wrote on last edited by
              #6

              I just got Qt Creator 2.0.1 and used both *.h and *.cpp and it worked just fine

              1 Reply Last reply
              0

              • Login

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