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] Debugging to the source of Qt?
Forum Updated to NodeBB v4.3 + New Features

[Solved] Debugging to the source of Qt?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 1.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.
  • CAD_codingC Offline
    CAD_codingC Offline
    CAD_coding
    wrote on last edited by
    #1

    Hi,
    Sometimes I find myself in situations where I want to debug into the source code of Qt.
    I am using the LGPL license Qt 4.8.1 SDK with MinGw compiler.
    Is it legal for me to debug into the Qt code?
    If yes, then how do I do so?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      By all means, AFAIK. Qt libraries come with both release and debug libs included by default. Just build your project in debug mode and start debugging.

      (Z(:^

      1 Reply Last reply
      0
      • CAD_codingC Offline
        CAD_codingC Offline
        CAD_coding
        wrote on last edited by
        #3

        Hi sierdzio,

        Yes I can find the debug libraries in my Qt installation.
        But when I am debugging, if I press F10 or F11 for a Qt API then it does not go into the Qt's source code.
        I am also unable to find the .cpp source files of Qt in my installation.
        Is this the reason for that?
        Should I re-install Qt?

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Ah, OK, maybe the code is missing, as it should be working. I can't really confirm if reinstallation would work - if the packagers did not put the code in there, it won't appear even after you install again. You can try compiling Qt from source, it's not very hard (although it takes a while).

          (Z(:^

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

            I have found that if both the debug and release dlls of Qt are available, I cannot debug into Qt. If only the debug dlls are available, it works.
            This goes for VS 2010, but it might be worth a try on MinGW.

            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