Ctrl+Click on QML Object in QtCreator 15 opens QML file from build tmp directory
-
wrote on 27 Dec 2024, 11:49 last edited by
Qt version: 6.8.0
Qt Creator version: 15.0.0
OS version: Windows 11Hi, I am having an issue when using QML Modules . You can reproduce it with the QML Module example QMLModules_Section3 from Qt Academy in:
[https://github.com/qt-learning/QML-Modules](link url)The problem is that when you try to navigate to a QML object using Ctrl+Click on QtCreator code editor, it opens the temporary QML file on QT_QML_OUTPUT_DIRECTORY instead of opening the file on your project directory, resulting on work lost if you are not aware of it.
You can open the QML file from your project source directory just fine using the Project tree navigator or searching for the file with Ctrl+K.I am aware of QtCreator v15 having issues with the QML Language Server as stated here:
[https://www.qt.io/blog/issues-with-qml-language-server-integration-in-qt-creator-14.0-and-15.0](link url)but this is happening regardless of having the QML Language Server enabled or not on the QtCreator Preferences.
Any idea of why is this happening or how could it be solved?
Thanks -
wrote on 6 Feb 2025, 21:49 last edited by mzimmers
I'm seeing the same thing on my Ubuntu desktop. Does anyone know of a current bug report for this?
EDIT:
And now, as of Creator 16.0, I'm seeing it on Windows as well. This is really annoying.
-
wrote on 22 Apr 2025, 00:17 last edited by elendilm
Same issue here with Qt Creator 16.0 on KDE Neon. Anyone know any solutions?
-
wrote on 23 Apr 2025, 13:23 last edited by
For some reason the issue magically disappeared. I removed Qt Creator 16 from the maintenance tool and then reinstalled the Qt Creator 16. Now the issue appears to be automatically fixed after the first time the build is run.
-
perhaps this bug https://bugreports.qt.io/browse/QTBUG-131920
fixed in 6.8.2 / 6.9.0