@drmhkelley said in re-compiling (cached) qml components:
Ooops - stopped paying attention for a bit, but thanks very much for the additional imformation.
No problem.
For your new questions:
Version of Qt 5 was Qt 5.15. The app was developed starting with version Qt 4.??, but I kept it going through 5.15.
Great!
files managed inside a *.qrc file ...
What specifically do you mean by "run your compilation"? Are you referring to the steps I specifically initiate via "make"?
I meant "run qmake + make"
Or do you refer to steps taken more indirectly through the QML compilation engine? That's where I start getting pretty confused.
Programmers are not meant to run the QML compiler directly. Most of the time, you don't even have to think about it because qmake and make take care it it for you automatically.
Also, what uses the info in the .qrc file? It is referenced in the .pro file (RESOURCES += ...), but it isn't obvious what is done with that.
I don't use either qmake or CMake - never found a "simple" enough explanation/example to figure them out. Instead, I just use mingw32-make, which I've used extensively for many eons.
At the core of it, qmake converts your *.pro file into a Makefile. Programmers would run qmake first, then run make. when qmake sees the RESOURCES += ... in your *.pro file, it writes the relevant rules into your Makefile to run rcc.exe.
Anyway, this might be the source of your problem. rcc.exe reads the *.qrc file, collects the latest version of the resource files, and embeds them into your executable. If you have a *.qml file that isn't listed in the *.qrc file, or if your Makefile does not contain rules to invoke rcc.exe when those files are changed, then that would explain why your modified *.qml files are not getting processed.
If you're running mingw32-make directly but not running qmake, that means your *.pro file is not actually getting used at all. You can probably delete the *.pro file and see no difference.
"multiple versions of Qt" with single Qt Creator. When I was first starting to use Qt, I tried to do that, but was never successful. Can you point me to any simple description of how to accomplish that?
Use the Qt Online Installer to install all the versions of Qt that you want (ensure that you have also installed the relevant compilers too)
Create or open a project in Qt Creator. It will ask you which installed version(s) of Qt you want to use with your project, so make your selection.
Click the "Run" button to build and run your application with your first selected version of Qt.
Use the "Kit Selector" to select a different version of Qt, and click the "Run" button to build and run your application with that other version of Qt (see https://doc.qt.io/qtcreator/creator-building-targets.html for the diagram)
That's the gist of it.
Many thanks for the pointers to ports of positioning and location to Qt 6. When I first converted to Qt 6, I tried to keep up with that, but stopped once it seemed unlikely to ever reach any sensible stage of utility. I will definitely look more into whether the current status allows users like me to use them productively.
Many thanks
š