Il 31/07/19 23:22, Nikos Chantziaras ha scritto:
static void constructor() __attribute__((constructor)); static void constructor(){ qmlRegisterType<ClassName>("ClassName", 1, 0, "ClassName"); } Maybe it helps.Thanks! I didn't know about that one.
You can do that in pure C++, by the way; just define a global object. -- Giuseppe D'Angelo | [email protected] | Senior Software Engineer KDAB (France) S.A.S., a KDAB Group company Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com KDAB - The Qt, C++ and OpenGL Experts
smime.p7s
Description: Firma crittografica S/MIME
_______________________________________________ Interest mailing list [email protected] https://lists.qt-project.org/listinfo/interest
