Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. cant see project files
QtWS25 Last Chance

cant see project files

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
9 Posts 3 Posters 359 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.
  • V Offline
    V Offline
    viniltc
    wrote on last edited by
    #1

    Hi,

    I've created a new Qt Widget application. Strangely I can't see the source and header files in the Qt Creator.

    35e47af2-1543-4f90-a775-bbbce43e2080-image.png

    Also getting the following error upon building:

    58c490c5-6817-4a61-97e2-601174fff755-image.png

    Any idea what causing this error?

    J.HilkJ 1 Reply Last reply
    0
    • V viniltc

      Hi,

      I've created a new Qt Widget application. Strangely I can't see the source and header files in the Qt Creator.

      35e47af2-1543-4f90-a775-bbbce43e2080-image.png

      Also getting the following error upon building:

      58c490c5-6817-4a61-97e2-601174fff755-image.png

      Any idea what causing this error?

      J.HilkJ Online
      J.HilkJ Online
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @viniltc said in cant see project files:

      Any idea what causing this error?

      there's something wrong with the content of your pro file, obviously.


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      V 1 Reply Last reply
      1
      • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on
      • J.HilkJ J.Hilk

        @viniltc said in cant see project files:

        Any idea what causing this error?

        there's something wrong with the content of your pro file, obviously.

        V Offline
        V Offline
        viniltc
        wrote on last edited by
        #3

        @J-Hilk Hi, This is the first time when I created the project. .pro file is autogenerated. Is it an issue related to configuration of Qt Creator?

        J.HilkJ 1 Reply Last reply
        0
        • V viniltc

          @J-Hilk Hi, This is the first time when I created the project. .pro file is autogenerated. Is it an issue related to configuration of Qt Creator?

          J.HilkJ Online
          J.HilkJ Online
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @viniltc said in cant see project files:

          Is it an issue related to configuration of Qt Creator?

          no, almost certainly not.

          Why don't you show us the content of the pro file ?


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          V 1 Reply Last reply
          1
          • J.HilkJ J.Hilk

            @viniltc said in cant see project files:

            Is it an issue related to configuration of Qt Creator?

            no, almost certainly not.

            Why don't you show us the content of the pro file ?

            V Offline
            V Offline
            viniltc
            wrote on last edited by
            #5

            @J-Hilk Hi, here is the .pro

            QT       += core gui
            
            greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
            
            CONFIG += c++11
            
            # You can make your code fail to compile if it uses deprecated APIs.
            # In order to do so, uncomment the following line.
            #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
            
            SOURCES += \
                main.cpp \
                mainwindow.cpp
            
            HEADERS += \
                mainwindow.h
            
            FORMS += \
                mainwindow.ui
            
            # Default rules for deployment.
            qnx: target.path = /tmp/$${TARGET}/bin
            else: unix:!android: target.path = /opt/$${TARGET}/bin
            !isEmpty(target.path): INSTALLS += target
            
            
            J.HilkJ 1 Reply Last reply
            1
            • V viniltc

              @J-Hilk Hi, here is the .pro

              QT       += core gui
              
              greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
              
              CONFIG += c++11
              
              # You can make your code fail to compile if it uses deprecated APIs.
              # In order to do so, uncomment the following line.
              #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
              
              SOURCES += \
                  main.cpp \
                  mainwindow.cpp
              
              HEADERS += \
                  mainwindow.h
              
              FORMS += \
                  mainwindow.ui
              
              # Default rules for deployment.
              qnx: target.path = /tmp/$${TARGET}/bin
              else: unix:!android: target.path = /opt/$${TARGET}/bin
              !isEmpty(target.path): INSTALLS += target
              
              
              J.HilkJ Online
              J.HilkJ Online
              J.Hilk
              Moderators
              wrote on last edited by
              #6

              @viniltc well, thats unfortunate, because it is totally fine and even loads fine in my QtCreator

              looking back at the error, it might also suggest something being wrong with the kit settings

              When you check your preferences/option menu in Qt Creator and check the kits list entry.

              what is listed and if there's something listet, is it marked with a yellow triangle or red exclamation mark ?


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              V 1 Reply Last reply
              0
              • Y Offline
                Y Offline
                yamu
                wrote on last edited by
                #7

                When creating the project you have to select the compiler kit selection. Then only the cpp and header files will show.

                Else, now u have to give , open the QT application and build->configure project.
                The project file will visible now.

                1 Reply Last reply
                0
                • J.HilkJ J.Hilk

                  @viniltc well, thats unfortunate, because it is totally fine and even loads fine in my QtCreator

                  looking back at the error, it might also suggest something being wrong with the kit settings

                  When you check your preferences/option menu in Qt Creator and check the kits list entry.

                  what is listed and if there's something listet, is it marked with a yellow triangle or red exclamation mark ?

                  V Offline
                  V Offline
                  viniltc
                  wrote on last edited by
                  #8

                  @J-Hilk Hi, I selected MSVC2017 32 bit when created the project. But that seems to be Ok in the Kit list, I don't see a exclamations mark:

                  4c71519f-c973-4c37-8b55-5575b46ea186-image.png

                  1 Reply Last reply
                  0
                  • Y Offline
                    Y Offline
                    yamu
                    wrote on last edited by yamu
                    #9

                    I am not telling that tab. while you creating the new project, you can see this screen. select here the compiler.

                    Here with I have attached that screen.Screenshot (20).png

                    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