<div dir="ltr">The types defined in C++ need to be registered before calling QUICK_TEST_MAIN()<div><br></div><div><a href="https://github.com/qt/qtquickcontrols/blob/5.8/src/controls/plugin.cpp#L159">https://github.com/qt/qtquickcontrols/blob/5.8/src/controls/plugin.cpp#L159</a><br></div><div><br></div><div>Sorry if I don't understand your question. </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 11, 2017 at 1:59 PM, Phil Thompson <span dir="ltr"><<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 8 Mar 2017, at 4:53 pm, Cody Scott <<a href="mailto:cody@perspexis.com">cody@perspexis.com</a>> wrote:<br>
><br>
> It seems that you can't do this. Qt handles QuickTest specially. It won’t load the package if the program is not started via QUICK_TEST_MAIN.<br>
><br>
> Is this something that PyQt5 is missing because there is no sip wrapper for QUICK_TEST_MAIN?<br>
><br>
> Is there another way to run QML tests with a type registered in Python?<br>
<br>
</span>How does the C++ implementation of registered types get loaded when using QUICK_TEST_MAIN?<br>
<span class="HOEnZb"><font color="#888888"><br>
Phil</font></span></blockquote></div><br></div>