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] Qt 4.8: Step into Qt's source code on Windows using MSVC
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Qt 4.8: Step into Qt's source code on Windows using MSVC

Scheduled Pinned Locked Moved General and Desktop
8 Posts 3 Posters 4.6k 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.
  • A Offline
    A Offline
    agarny
    wrote on last edited by
    #1

    Hi,

    I was wondering whether there is a way to step into Qt's source code on Windows using MSVC? Right now, if I try to trace into Qt's source code, it will go into whatever code is located in a Qt header file, but not in anything which is located in Qt .cpp file. I have donwloaded Qt's source code, but I was surprised to find out that is located in a complete different place to where Qt's header files are. Anyway, any help on this (and, to some extent, the same on Linux and Mac OS X) would be much appreciated...

    Cheers, Alan.

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

      Stepping into the source files using msvc with Qt is possible. Just checked with an application to be sure. Tested on Win 7 64 bit, msvc 2005 and Qt 4.7.2. The only difference may be that it is a commercial license.

      The Qt directory consists beside of a couple of folders an "include" and "src" folder. I know that most of the includes are simply opening other includes. Therefore, I would assume that they are ending up in the "*.h"-files of the source folder.
      During this short test, I had to enter a couple of includes as well and they were all opened in the src folder.

      Oh, I am using also vsaddin. Do you have this installed? Unfortunately, this does not work with msvc express versions.

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

      1 Reply Last reply
      0
      • A Offline
        A Offline
        agarny
        wrote on last edited by
        #3

        I guess I should have mentioned that I use MSVC 2010 Express SP1 with Qt Creator, so no vsaddin for me or anything.

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

          Yes, vsaddin cannot be used with msvc express versions sicne they do not allow addins.

          I have never tried Qt creator with an msvc tool chain. AFAIK there are some more threads concerning msvc tool chain and Qt creator. You may want to check those.

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

          1 Reply Last reply
          0
          • A Offline
            A Offline
            agarny
            wrote on last edited by
            #5

            Just to be clear, my project builds fine within Qt Creator using MSVC (and CMake in fact). It's just that if I build a debug version of my project, I can trace into it my code, but not Qt's code (unless it's a header file, as opposed to a .cpp file). I have looked around, but haven't, so far, found anything that would allow me to do it, but I can't imagine that it's not possible...?!

            1 Reply Last reply
            0
            • K Offline
              K Offline
              KeithS
              wrote on last edited by
              #6

              Did you link your code to the Qt debug dll's?

              i.e. QtCored4.dll not QtCore4.dll, etc.

              1 Reply Last reply
              0
              • A Offline
                A Offline
                agarny
                wrote on last edited by
                #7

                Yes, as confirmed when debugging my code (i.e. Qt Creator tells me that QtCored4.dll was loaded rather than QtCore4.dll, etc.).

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  agarny
                  wrote on last edited by
                  #8

                  Solved, see http://bit.ly/Opco9O

                  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