[SOLVED] Are you able to extend QML via C++ with MSVC2010 ?
-
Hi folks, I may be quite annoying you, but it is very important, are you able to extend QML via C++ without any application crash? Could you provide me some information how to do that? Because I am getting still my bug (discovered by me)...
"[QTBUG-25999]":https://bugreports.qt-project.org/browse/QTBUG-25999Well, I have noticed there "Extending QML - Adding Types Example":http://qt-project.org/doc/qt-4.8/declarative-cppextensions-referenceexamples-adding-main-cpp.html
That's fine for any root object. okay. And what about non-root objects, that are placed somewhere inside any other object?How to get over that? I wouldn't ask you unless it was urgent...
-
That's odd; the example on your bug report works fine for me (using Qt 4.8.2 on Linux) and I've never had trouble extending QML with C++.
You can download my entire project (it's just the code from your bug report, but it has a working .pro and the like) here, if you want: http://ge.tt/45dR2EJ/v/0?c
-
Definitely worth a shot. On my system, it works fine with both G++ and Clang. I've had trouble with the MSVC 2010 compiler before, though.