[Interest] qt_add_qml_model() dependency issue

Sze Howe Koh szehowe.koh at gmail.com
Sun Oct 29 02:41:35 CEST 2023


Sounds like https://bugreports.qt.io/browse/QTBUG-106683 which was already
fixed in Qt 6.5.2.

However, there's still a related issue outstanding:
https://bugreports.qt.io/browse/QTBUG-115166

As a workaround, use Ninja instead of Makefiles, since Ninja wasn't
affected by these issues.


Regards,
Sze-Howe


On Sun, Oct 29, 2023, 06:04 Stefan Seefeld <stefan at seefeld.name> wrote:

> Hello,
>
> I just started using the `at_add_qml_model()` function, where the "backing
> target" is a (shared) library. I notice that each time I call `make`, the
> target is rebuilt. Specifically, the sequence
>
> ```
> Running moc --collect-json for target XXX
> Automatic QML type registration for target XXX
> Consolidate compiler generated dependencies of target XXX
> Building CXX object
> libs/XXX/CMakeFiles/XXX.dir/xxx_qmltyperegistrations.cpp.o
> ...
> ```
> is executed (and thus, everything depending on `XXX` needs to be updated
> as well.
>
> Is this a known issue ? I had expected a second call to `make` to do
> nothing, as all targets are up to date.
>
> Thanks,
>
>       ...ich hab' noch einen Koffer in Berlin
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20231029/ecae44a8/attachment.htm>


More information about the Interest mailing list