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. [qt creator] go to source files by F4 shortcut
Forum Updated to NodeBB v4.3 + New Features

[qt creator] go to source files by F4 shortcut

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
qt creatorsource code
4 Posts 2 Posters 2.4k Views 3 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.
  • S Offline
    S Offline
    silverq
    wrote on 24 Aug 2017, 17:34 last edited by
    #1

    How can I install Qt Source cpp files and tell Qt Creator to open this source file when I do ctrl+click on some method or by F4 shortcut?

    e.g. for:

    QFile myFile("a.txt");
    myFile.exi|sts(); // F4 at | char
    

    I have installed Sources:

    0_1503595562616_qt_installer_sources.png

    In Qt dir was of course created e:\Qt\5.9.1\Src\ folder which contains source files, how to tell Qt Creator to take into account this files?

    Thank you for any suggestions and advices.

    R 1 Reply Last reply 25 Aug 2017, 07:10
    0
    • S silverq
      24 Aug 2017, 17:34

      How can I install Qt Source cpp files and tell Qt Creator to open this source file when I do ctrl+click on some method or by F4 shortcut?

      e.g. for:

      QFile myFile("a.txt");
      myFile.exi|sts(); // F4 at | char
      

      I have installed Sources:

      0_1503595562616_qt_installer_sources.png

      In Qt dir was of course created e:\Qt\5.9.1\Src\ folder which contains source files, how to tell Qt Creator to take into account this files?

      Thank you for any suggestions and advices.

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 25 Aug 2017, 07:10 last edited by
      #2

      @silverq
      QtCreator settings -> Debugger -> General -> Source Paths Mapping

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1
      • S Offline
        S Offline
        silverq
        wrote on 25 Aug 2017, 08:40 last edited by
        #3

        I have tried many combination of paths, but still without success, I can't go to the source cpp files by F4 or ctrl+left click.

        0_1503649704567_source_path_mapping.png

        Paths on the picture was added automatically when I clicked Add Qt sources... button, I tried with this paths too.

        I tried this source paths:

        e:\Qt\Qt5.9.1\5.9.1\msvc2015_64\bin\
        e:\Qt\Qt5.9.1\5.9.1\msvc2015_64\
        

        And this target paths:

        e:\Qt\Qt5.9.1\5.9.1\Src\
        e:\Qt\Qt5.9.1\5.9.1\Src\qtbase\
        e:\c\build-qt_test-Desktop_Qt_5_9_1_MSVC2015_64bit-Debug\
        

        The last one is my example project.

        And even vice versa :/

        Source paths:

        e:\Qt\Qt5.9.1\5.9.1\Src\
        e:\Qt\Qt5.9.1\5.9.1\Src\qtbase\
        

        Target paths:

        e:\Qt\Qt5.9.1\5.9.1\msvc2015_64\
        

        Without success.

        Only one solution which I found and works, is to compile qt myself, like:

        configure -debug -nomake examples -nomake tests -opensource -confirm-license -platform win32-msvc2015 -developer-build
        

        When I use this kit, so F4 shortcut works as expected and even Step Into (F11) to qt sources during debugging works too.

        But I don't want to recompile qt for every new version.

        Did I Miss something?

        S 1 Reply Last reply 28 Aug 2017, 09:50
        0
        • S silverq
          25 Aug 2017, 08:40

          I have tried many combination of paths, but still without success, I can't go to the source cpp files by F4 or ctrl+left click.

          0_1503649704567_source_path_mapping.png

          Paths on the picture was added automatically when I clicked Add Qt sources... button, I tried with this paths too.

          I tried this source paths:

          e:\Qt\Qt5.9.1\5.9.1\msvc2015_64\bin\
          e:\Qt\Qt5.9.1\5.9.1\msvc2015_64\
          

          And this target paths:

          e:\Qt\Qt5.9.1\5.9.1\Src\
          e:\Qt\Qt5.9.1\5.9.1\Src\qtbase\
          e:\c\build-qt_test-Desktop_Qt_5_9_1_MSVC2015_64bit-Debug\
          

          The last one is my example project.

          And even vice versa :/

          Source paths:

          e:\Qt\Qt5.9.1\5.9.1\Src\
          e:\Qt\Qt5.9.1\5.9.1\Src\qtbase\
          

          Target paths:

          e:\Qt\Qt5.9.1\5.9.1\msvc2015_64\
          

          Without success.

          Only one solution which I found and works, is to compile qt myself, like:

          configure -debug -nomake examples -nomake tests -opensource -confirm-license -platform win32-msvc2015 -developer-build
          

          When I use this kit, so F4 shortcut works as expected and even Step Into (F11) to qt sources during debugging works too.

          But I don't want to recompile qt for every new version.

          Did I Miss something?

          S Offline
          S Offline
          silverq
          wrote on 28 Aug 2017, 09:50 last edited by
          #4

          So it doesn't work even with developer-build :/, so recompile myself didn't help, still any solution.

          1 Reply Last reply
          0

          3/4

          25 Aug 2017, 08:40

          • Login

          • Login or register to search.
          3 out of 4
          • First post
            3/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved