[Interest] Regarding the tst_qquickfolderlistmodel linker error
Volker Hilsheimer
volker.hilsheimer at qt.io
Fri Mar 21 12:30:12 CET 2025
> On 21 Mar 2025, at 10:25, Suhas Krishanamurthy <suhaskrishanamurthy2076 at outlook.com> wrote:
>
> Hello All,
> I am working on resolving a Qt bug related to the QQuick Folder List Model. I tried to write a test case to test signal emission using QSignalSpy. Initially, I used the SIGNAL macro, but someone suggested I change it to a function pointer. After trying the function pointer approach, I encountered a linker error.
> I attempted to include QQuickFolderListModel and qquickfolderlistmodel_p.h in two different ways, but neither resolved the linker error. Can someone assist me in resolving this issue?
> Thank you,
> Suhas
Hi Suhas,
QQuickFolderListModel lives in labs, and has no public C++ API. And I only see a `qt_internal_add_qml_module(LabsFolderListModel`, so there’s probably no binary artefact to link against.
So, using string-based connections, or writing a pure QML test, is probably the way to go.
Fee free to share a link to your attempt on gerrit.
Volker
More information about the Interest
mailing list