Debug into Qt sources

前端 未结 3 569
野性不改
野性不改 2021-01-19 11:01

Is it possible to step into Qt sources, e.g. qmainwindow.cpp, in Qt Creator? At the moment I\'m seeing the disassembly, but it would be nice to see the sources instead.

3条回答
  •  萌比男神i
    2021-01-19 11:43

    Of course! But you might have to first:

    • go to $QT_HOME/qt

    • run ./configure with the -debug or -debug-and-release flag (many other flags here)

    • run "make"

    • wait a couple of hours while things build

提交回复
热议问题