Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-127661

Creator jumps to auto generated file instead of the real one

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.7, 6.8.1, 6.8, 6.9.0 FF
    • 6.7, 6.8
    • QML: Tooling
    • None
    • macOS, Windows
    • 8d874a1b3 (dev), ce252deaf (6.8), 2b2deb0a1 (dev), b1ff6073a (dev), 36a447a41 (dev), 2f4a57773 (6.8), 32053c54d (6.8), 21a376797 (6.8)

    Description

      When I do a `ctrl+click` on a Component, it jumps to auto generated files in the build directory instead of the real file that I wanna edit. it is annoying and is happening after  Qt Creator 13.0.2 AFAIR.

       

      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
          
          MyRect{
              
          }       
      }
      
      

       
      project directory files: 
      Main.qml

      MyRect.qml

       

      for instance in the above example if I do a ctrl+click on MyRect it opens build\Desktop_Qt_6_7_2_MSVC2019_64bit-Release\MyRect.qml

      my project structure is more complicated and I'm using qt_add_qml_module so maybe you can't reproduce it with just a simple structure, please test it with a nested structure project.

      something like;

      Main.qml

      Common\Windows\MyRect.qml

      Attachments

        1. Archive.zip
          2 kB
          Sami Shalayel
        2. image-2024-08-01-06-29-27-883.png
          3 kB
          Dawn Walker

        Issue Links

          For Gerrit Dashboard: QTBUG-127661
          # Subject Branch Project Status CR V

          Activity

            People

              sami.shalayel Sami Shalayel
              spfl97 Dawn Walker
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: