Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] Source folder and c++/hpp files not appearing in Qt Creator
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Source folder and c++/hpp files not appearing in Qt Creator

Scheduled Pinned Locked Moved General and Desktop
11 Posts 3 Posters 9.9k Views 3 Watching
  • 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.
  • M Offline
    M Offline
    mcosta
    wrote on last edited by
    #2

    Hi and welcome to devnet,

    which platform? Qt Version?
    Are you using qmake based project or another type (CMake, Qbs, ...)??

    Once your problem is solved don't forget to:

    • Mark the thread as SOLVED using the Topic Tool menu
    • Vote up the answer(s) that helped you to solve the issue

    You can embed images using (http://imgur.com/) or (http://postimage.org/)

    1 Reply Last reply
    0
    • TechnologistT Offline
      TechnologistT Offline
      Technologist
      wrote on last edited by
      #3

      Qt 5.4 OpenCV 2.4.11

      Hello,
      Yes I used cmake to compile the library and have used qmake as well. I installed Qt then linked it to OpenCV using the above modalities.

      Strange thing if I cut and pasted a pro file from a different file to a new one, without changing the Source name, the source file would disappear. If I changed it back to its correct source name it would reappear in the tree. Thought I figured it out, but the source file(s) in the tree began dropping out unexpectedly without any known cause.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mcosta
        wrote on last edited by
        #4

        Hi,

        if you use CMake to manage your project you have to add the new file in the CMakeList.txt to have it in the Project View.
        Qt Creator Manage automatically add a new file only for qmake projects

        Once your problem is solved don't forget to:

        • Mark the thread as SOLVED using the Topic Tool menu
        • Vote up the answer(s) that helped you to solve the issue

        You can embed images using (http://imgur.com/) or (http://postimage.org/)

        1 Reply Last reply
        0
        • TechnologistT Offline
          TechnologistT Offline
          Technologist
          wrote on last edited by Technologist
          #5

          How can I tell whether I have a cmake project? I have the IDE that I build and run the project with (Qt Creator). I configure the.pro file. Where can I find makelist file? I don't see it in my project folder.

          I've been using the QtCreator to do everything.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mcosta
            wrote on last edited by
            #6

            Hi,

            if you have a .pro file do shouldn't have a CMakeLists.txt.
            The first decision you have to take
            Which tool I'll use to manage the build/deploy process?

            At the moment Qt Creator offers support for

            • qmake
            • CMake
            • Qbs

            Once your problem is solved don't forget to:

            • Mark the thread as SOLVED using the Topic Tool menu
            • Vote up the answer(s) that helped you to solve the issue

            You can embed images using (http://imgur.com/) or (http://postimage.org/)

            1 Reply Last reply
            0
            • TechnologistT Offline
              TechnologistT Offline
              Technologist
              wrote on last edited by Technologist
              #7

              ok, so far I have been using the "build" and "build & run" options to compile and execute my code.

              I use Build File/Build Project in the menu as well as run/green arrow bottom left.

              Ive done some reading and I guess my question is almost too elementary, but why do I need to pick a tool when I have the QtCreator? I feel I am missing a simple point here. How would I use it with Qt Creator.

              How do I choose one?

              My scenario is a stable operating environment focused on machine vision programs development. for now the focus is less cross platform but protypical with the option to step it up.

              Thank you

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #8

                Hi,

                Like @mcosta wrote, Qt Creator is an IDE that support several project management facilities. Whether you want to use qmake, cmake or QBS to handle your project is up to you. You should take the time to compare these options and see which one suits your needs best.

                AFAIK, by default, Qt Creator uses qmake by default.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                TechnologistT 1 Reply Last reply
                0
                • SGaistS SGaist

                  Hi,

                  Like @mcosta wrote, Qt Creator is an IDE that support several project management facilities. Whether you want to use qmake, cmake or QBS to handle your project is up to you. You should take the time to compare these options and see which one suits your needs best.

                  AFAIK, by default, Qt Creator uses qmake by default.

                  TechnologistT Offline
                  TechnologistT Offline
                  Technologist
                  wrote on last edited by Technologist
                  #9

                  @SGaist

                  The opencv/Qt library were joined with C-make version 3.xxx. A few make commands were used to install the code. I'm thinking of using a tool that has already been used to configure the environment now that I am trying to stabilize, qmake the default.

                  The question is how does the tools designation help me with folders dropping off, and the IDE needing LESS specific information for referencing files:

                  LIBS += -LC:\OpenCV-2.3.1\bin
                  -lopencv_core2411.dll
                  -lopencv_highgui2411.dll
                  -lopencv_imgproc2411.dll
                  -lopencv_features2d2411.dll
                  -lopencv_calib3d2411.dll
                  <All errors>(DLL)
                  LIBS += -LC:\OpenCV-2.3.1\bin
                  -lopencv_core2411
                  -lopencv_highgui2411
                  -lopencv_imgproc2411
                  -lopencv_features2d2411
                  -lopencv_calib3d2411
                  <No DLL>
                  <none, we are golden> executes fine
                  I think I may have found out what was causing the folders to dissappear: going to projects and not selecting release build creates the behavior when creating a new project.

                  These errors brought me here - 1 I think is solved. Please tell me the next step after tool consideration. Its pretty obvious for a cmake made project that one would continue to use cmake? Does the DLL behavior suggest any bias towards any one of the tools?

                  1 Reply Last reply
                  0
                  • TechnologistT Offline
                    TechnologistT Offline
                    Technologist
                    wrote on last edited by
                    #10

                    Main Topic Solved - environmental variable at project creation were responsible.

                    [SOLVED]

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      mcosta
                      wrote on last edited by
                      #11

                      Hi,

                      put [SOLVED] as prefix of the thread title

                      Once your problem is solved don't forget to:

                      • Mark the thread as SOLVED using the Topic Tool menu
                      • Vote up the answer(s) that helped you to solve the issue

                      You can embed images using (http://imgur.com/) or (http://postimage.org/)

                      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