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 Integration with Visual C++ 2010 Express Edition, how do I do this correctly?
Forum Updated to NodeBB v4.3 + New Features

Qt Integration with Visual C++ 2010 Express Edition, how do I do this correctly?

Scheduled Pinned Locked Moved Installation and Deployment
25 Posts 8 Posters 31.4k 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.
  • D Offline
    D Offline
    DSav
    wrote on last edited by
    #15

    You should also know that you cannot just run nmake in the directory of your project. You should first run @qmake ProjectName.pro@ It will generate Makefile from your ProjectName.pro file.

    Actually, I would recommend to use Qt Creator as an IDE for developing with Qt. I personally find it very handy (much more handy than Visual C++ IDE). You will only need to install CDB in order to debug application, compiled with MS VC++, in Qt Creator (see Creator documentation for more info).

    However, if you are new to Qt, it would possibly be much easier to start first with prebuilt versions of Qt Libs: just download Qt libraries 4.7.3 for Windows (minGW 4.4, 319 MB) and Qt Creator 2.2.1 for Windows (52 MB) from "here":http://qt.nokia.com/downloads, install them and start using. As you become more familiar with Qt, you will find no problems in building either Qt Libs, Qt Creator or your application with every supported toolchain.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #16

      If you are not familiar with Visual Studio and you do not require the microsoft compiler, it is certainly a good recommendation to consider Qt Creator.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DSav
        wrote on last edited by
        #17

        [quote author="koahnig" date="1308858426"]If you are not familiar with Visual Studio and you do not require the microsoft compiler, it is certainly a good recommendation to consider Qt Creator. [/quote]

        Visual Studio support of C++ is not so impressive comparing to C# or VisualBasic.NET. So, even if you’re familiar with Visual Studio, using of Qt Creator for development with Qt is, possibly, better approach.

        Just personal opinion, of course.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AutoBot
          wrote on last edited by
          #18

          I've tried to install the VS add-in, it said that express wasn't compatable.

          bq. You should also know that you cannot just run nmake in the directory of your project. You should first run qmake ProjectName.pro, it will generate Makefile from your ProjectName.pro file.

          But how should I create a makefile if I'm only using VC++, in which case I don't have any .pro files?

          I'll consider using the Qt IDE for all of my projects that use Qt, I'm just worried about discrepancies between my Qt utilities and external libraries that they use (such as OpenGL, OpenAL, STL, etc) and other components of my game engine, such as the runtime foundation system which won't even use Qt.

          So I suppose if I'm still going to be using VC++ for Qt development (if consistency is required), the question I have is how would I create a makefile for my Visual Studio project files that use Qt?

          1 Reply Last reply
          0
          • D Offline
            D Offline
            DSav
            wrote on last edited by
            #19

            Work with external libraries will not depend on what IDE you use.

            You need qmake and pro file because qmake will not only generate Makefile, it will as well call "moc":http://doc.qt.nokia.com/4.7/moc.html to generate a number of extra *.h and *.cpp files (this is because Qt uses some C++ language extensions that are not supported by compilers, e.g. slots and signals, advanced RTTI).

            Qt supports OpenGL ("examples":http://doc.qt.nokia.com/4.7/examples-opengl.html), you can easily use STL things (though Qt has its own useful containers), you can use Qt with Boost. I see no reason for Qt not to be compatible with OpenAL. And, again, it all doesn’t depend on IDE.

            I will strongly recommend you to spend some time learning Qt essentials, before you use it in your application. Qt is powerful and easy-to-use library, but it needs some effort to become familiar with. Luckily, there’re a lot of documentation, tutorials, examples and so on. This is some links:

            • "Qt Documentation":http://doc.qt.nokia.com/
            • "Qt Learning materials":http://qt.nokia.com/developer/learning/online/training/
            • A lot of examples in _«QtDir»\examples_. They are also explained in documentation.
            • And this forum, of course.
            1 Reply Last reply
            0
            • D Offline
              D Offline
              DSav
              wrote on last edited by
              #20

              [quote author="AutoBot" date="1308859391"]
              So I suppose if I'm still going to be using VC++ for Qt development (if consistency is required), the question I have is how would I create a makefile for my Visual Studio project files that use Qt?[/quote]

              You will need to create .pro file (its format explained "here":http://doc.qt.nokia.com/4.7/qmake-tutorial.html and "here":http://doc.qt.nokia.com/4.7/qmake-common-projects.html). If you use Qt Creator or VS with Qt Add-in, all this will be generated automatically.

              To build your project you should then run qmake and then nmake or jom.

              1 Reply Last reply
              0
              • A Offline
                A Offline
                AutoBot
                wrote on last edited by
                #21

                This makes a lot of sense now, I'll start working with Qt creator (and a different API when I'm not using Qt) and see how I do with that.

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  koahnig
                  wrote on last edited by
                  #22

                  [quote author="DSav" date="1308858917"]Visual Studio support of C++ is not so impressive comparing to C# or VisualBasic.NET. So, even if you’re familiar with Visual Studio, using of Qt Creator for development with Qt is, possibly, better approach.[/quote]

                  I am certainly not someone trying to defend MS products by all means. However, I am using them for long time now. My experience is limited to C++ there. I have started recently with Qt Creator on Linux. So far, I have not found a very good reason to switch completely. By saying so, I have to admit it is probably a part of laziness behind. The philosopies are different and I struggle quite a bit to get things done in Qt Creator.

                  However, my personal recommendation is, if you have to get used to both IDEs anyhow, I would choose Qt Creator.

                  Vote the answer(s) that helped you to solve your issue(s)

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    peter999
                    wrote on last edited by
                    #23

                    @AutoBot
                    you first should start with Qt documentation. Express versions does not support add ins, you can read the restrictions on the microsoft pages.

                    Qt should be created on command line (you also need da different commandline when using 64 bit), after configure call simply nmake.
                    To work with express VS 2010, you have a lot of work to configure the pre runs, i.e moc, uic, and so on. It is better to work with the qmake pro-files, and use express as editor.... VcProjX creating by hand is a hard working job...

                    So as koahnig wrote, Qt Creator is better for you. You can still use VS 2010 compiler, for debugging you need to install debugging tools from Microsoft.... And Qt Creator has "VS Addin" included.....

                    Or buy VS Studio 2010 professional, than you are able to work with VS Addin..

                    1 Reply Last reply
                    0
                    • jensen82J Offline
                      jensen82J Offline
                      jensen82
                      wrote on last edited by
                      #24

                      Why did they add prepared libraries for VC2005 and VC2008 to the QtSDK-Installer and not VC2010?
                      Any reason?

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        Anjan369
                        wrote on last edited by
                        #25

                        hi there is a way to buid a Qt project in msvc express editon..download the pdf from the link..
                        portfolio.delinkx.com/files/Qt.pdf

                        in the second part of PDF procedure is given...hopefully it will be helpfull for you..

                        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