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. Source files do not appear
Forum Updated to NodeBB v4.3 + New Features

Source files do not appear

Scheduled Pinned Locked Moved Qt Creator and other tools
23 Posts 5 Posters 33.9k Views 1 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
    Mannion
    wrote on last edited by
    #3

    Using the working installation from the main Qt Creator menu I select.

    File > Open File or Project>
    Then from the OPen File dialog I selcect the *.pro file.
    Thi simmediately brings up/ highlights the Edit mode and a project window with all the project files in it.

    if I do this in the other installation th eproject window doesn't open at all. If I want to edit the files I have to open the manually one by one from the main menu.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #4

      You can open the sidebar with the project view with Ctrl-0 (zero, not capital O). If needed you can select from the combobox the desired view (projects, open documents, etc).

      See "Qt Development Tools":http://qt.nokia.com/products/developer-tools/ for some details.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mannion
        wrote on last edited by
        #5

        The sidebar is visible and the Edit icon for the Edit mode is highlighted but there is no project view or functioning combobox. I will read your link but it does seem to be behaving very differently from the other installation of Qt Creator. I have already tried to reinstall the full SDK once as well.

        1 Reply Last reply
        0
        • B Offline
          B Offline
          blex
          wrote on last edited by
          #6

          What happens if you create new project in the broken QtCreator and add files to it?


          Oleksiy Balabay

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #7

            On this "screenshot!http://qt.nokia.com/images/products/qtcreatorbreakdown.png(Qt Creator screenshot)! look at the arrow of the sidebar caption. There is a combo box left of the filter sign. In that combo box you can choose the project view.

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply
            0
            • M Offline
              M Offline
              Mannion
              wrote on last edited by
              #8

              If I create a new GUI application project the Sidebar does not appear only the Mode selector is visible with Edit highlighted and only "mainwindow.cpp" is visible. (thankyou for clearing up what the sidebar is I was wrong earlier)

              I've noticed that this project won't build either on the broken Qt Creator. I get the following error:

              redeclaration of C++ built-in type 'wchar_t' referencing my MS Visual Studio include path and stddef.h.

              I am using MinGW gcc compiler for my LGPL Qt compilation and use MS Visual Studio 6.0 and 2005 for other projects. This setup is the same on both of my machines.

              I'm currently looking for differences in the Environment variables on the 2 machines. There doesn't seem to be a difference.
              Here are the relevant values on the broken installation machine:

              User variables
              include
              C:\Qt\2010.05\mingw\include;C:\Qt\2010.05\qt\include;C:\Program Files\Microsoft Visual Studio\VC98\atl\include;C:\Program Files\Microsoft Visual Studio\VC98\mfc\include;C:\Program Files\Microsoft Visual Studio\VC98\include;C:\nasm
              lib
              C:\Qt\2010.05\qt\lib;C:\Qt\2010.05\mingw\lib;C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib;C:\Program Files\Microsoft Visual Studio\VC98\lib
              path
              C:\Qt\2010.05\mingw\bin;C:\Qt\2010.05\qt\bin;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;C:\Sun\SDK\jdk\bin;C:\Program Files\Gemplus\GAC;C:\opt\gtk\bin;C:\nasm;C:\Perl\bin
              MINGW
              C:\Qt\2010.05\mingw
              QMAKESPEC
              win32-g++
              QTDIR
              C:\Qt\2010.05\qt

              System variables
              include
              C:\Qt\2010.05\mingw\include;C:\Qt\2010.05\qt\include;C:\Program Files\Microsoft Visual Studio\VC98\atl\include;C:\Program Files\Microsoft Visual Studio\VC98\mfc\include;C:\Program Files\Microsoft Visual Studio\VC98\include
              lib
              C:\Qt\2010.05\qt\lib;C:\Qt\2010.05\mingw\lib;C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib;C:\Program Files\Microsoft Visual Studio\VC98\lib
              path
              C:\Qt\2010.05\mingw\bin;C:\Qt\2010.05\qt\bin;C:\Perl\site\bin;C:\Perl\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\wbem;C:\Program Files\PC Connectivity Solution;C:\Program Files\Microsoft DirectX SDK (April 2006)\Utilities\Bin\x86;C:\Program Files\Windows Resource Kits\Tools;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Common Files\Teleca Shared;C:\PROGRA~1\Gemplus\GAC;C:\Sun\SDK\jdk\bin;C:\Program Files\Gemplus\GAC;C:\nasm
              MINGW
              C:\Qt\2010.05\mingw
              QMAKESPEC
              win32-g++
              QTDIR
              C:\Qt\2010.05\qt

              Thanks for all of your efforts.

              1 Reply Last reply
              0
              • G Offline
                G Offline
                goetz
                wrote on last edited by
                #9

                I suspect mixing include paths of Visual Studio and MinGW to be the cause of the errors. I seriously doubt that they are compatible. I never used MinGW thoug, so maybe some of the geeks on that can jump in.

                AFAIR, the sidebar ist hidden by default. Press Ctrl-0 or click on the little icon directly left to the locator to open it.

                http://www.catb.org/~esr/faqs/smart-questions.html

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  Mannion
                  wrote on last edited by
                  #10

                  It seems to work if I clear the build directory paths with set lib= and set include= within the Qt command prompt. Has anyone got an automated way of achieving this. Thanks for the help with Qt Creators IDE though that all seems fine now.

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

                    No the problem keeps recurring.

                    I can build everything within Qt command prompt using:
                    qmake -project
                    qmake
                    make

                    (make is a batch file to call the MinGW gcc compiler). If I do a build in Qt command prompt then I can edit the source within Qt Creator and build without any problems. If I don't do the Qt command prompt build first then Qt Creator hits the MSVS conflict problem in the build. Any ideas?

                    1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      goetz
                      wrote on last edited by
                      #12

                      In Qt Creator's project view on tab build settings on the very bottom you can tweak the environment. There is a checkbox "delete system environment" (or something like that, I have a German version). You can try to check this and get rid of the "polluted" env vars.

                      http://www.catb.org/~esr/faqs/smart-questions.html

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        Mannion
                        wrote on last edited by
                        #13

                        Thankyou that seems to do the trick. Checking the clean environment box in Projects mode under Build Settings and then setting all of the environment variables solves the issue. If yoiu arte using one of the example applications you have to create a fresh project file though to avoid using the System Environment variables.. So for example with examples/widgets/scribble below the existing project file was:

                        @HEADERS = mainwindow.h
                        scribblearea.h
                        SOURCES = main.cpp
                        mainwindow.cpp
                        scribblearea.cpp

                        install

                        target.path = $$[QT_INSTALL_EXAMPLES]/widgets/scribble
                        sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS scribble.pro
                        sources.path = $$[QT_INSTALL_EXAMPLES]/widgets/scribble
                        INSTALLS += target sources

                        symbian: include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri)@

                        After running Qmake -project and creating a new project file, below evrerything is fine.

                        @######################################################################

                        Automatically generated by qmake (2.01a) Fri 3. Dec 10:02:34 2010

                        ######################################################################

                        TEMPLATE = app
                        TARGET =
                        DEPENDPATH += .
                        INCLUDEPATH += .

                        Input

                        HEADERS += mainwindow.h scribblearea.h
                        SOURCES += main.cpp mainwindow.cpp scribblearea.cpp@

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          Mannion
                          wrote on last edited by
                          #14

                          One more question though. Is there a quicker way of doing this rather than setting up all of the environment variables manually for each project?

                          I would use MSVS C++ compilers but with the LGPL there is no support for using MSVS C++. Is this correct? This problem must be common for developers who want to use the LGPL or developers who have a commercial license and have clients who want them to develop under the LGPL for their own future maintenance requirements.

                          1 Reply Last reply
                          0
                          • G Offline
                            G Offline
                            goetz
                            wrote on last edited by
                            #15

                            As far as I know there is no limitation on compiling the LGPL version with Visual Studio. It seems there are just no prebuilt binaries available, so you will have to compile Qt yourself (that's not difficult, just get you some coffee or, better, have lunch in the meantime :-) )

                            You will find some instructions on how to compile Qt on Windows here: http://doc.qt.nokia.com/4.7/install-win.html

                            http://www.catb.org/~esr/faqs/smart-questions.html

                            1 Reply Last reply
                            0
                            • M Offline
                              M Offline
                              Mannion
                              wrote on last edited by
                              #16

                              It was on that URL

                              http://doc.qt.nokia.com/4.7/install-win.html

                              where I was put off using the LGLP of Qt with Visual Studio.

                              bq. Open Source Versions of Qt is not officially supported for use with any version of Visual Studio. Integration with Visual Studio is available as part of the Qt Commercial Edition.

                              Do you advise using Visual Studio over Qt Creator? I have MSVS 6.0 and MSVS 2005.

                              Thanks again for your help.

                              1 Reply Last reply
                              0
                              • G Offline
                                G Offline
                                goetz
                                wrote on last edited by
                                #17

                                It's not supported does not mean, it does not work :-)

                                As the commercial versions are supported by Nokia, I don't see any reasons not to go with MSVS. Although the Visual Studio add in is only available for the commercial users of Qt. Without that, developing Qt in MSVS is quite cumbersome.

                                I don't know if the open source version of Qt Creator does support MSVS. But as it calls command line tools only, I cannot see any reason why not. I'd give it a try.

                                http://www.catb.org/~esr/faqs/smart-questions.html

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

                                  Volker, quote from qt.nokia.com:

                                  bq. Want to use Qt together with Visual Studio on Windows? Download the Visual-Studio add-in, which can be used for development together with all Qt licenses.

                                  1 Reply Last reply
                                  0
                                  • G Offline
                                    G Offline
                                    goetz
                                    wrote on last edited by
                                    #19

                                    Citing http://doc.qt.nokia.com/4.7/install-win.html

                                    bq. Open Source Versions of Qt is not officially supported for use with any version of Visual Studio. Integration with Visual Studio is available as part of the Qt Commercial Edition.

                                    So the Qt docs are not up to date and consistent everywhere. Good to hear, that I'm wrong :-)

                                    http://www.catb.org/~esr/faqs/smart-questions.html

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

                                      Volker, yes, I think that info at downloads page at qt.nokia.com is more up to date than docs.

                                      1 Reply Last reply
                                      0
                                      • G Offline
                                        G Offline
                                        goetz
                                        wrote on last edited by
                                        #21

                                        Denis, could you add the link to the page to your previous post - would be handy to compare both for other readers.

                                        http://www.catb.org/~esr/faqs/smart-questions.html

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

                                          Volker, it is "http://qt.nokia.com/downloads":http://qt.nokia.com/downloads . Text itself is at bottom of the page under "Other downloads" header

                                          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