I'm sure this is a silly question, but why are these different:<div><br></div><div>// FILE: MyItem0.qml</div><div>import QtQuick 2.0</div><div>import my.custom.cpp 1.0    //<==NOTE NO "as"</div><div><br></div>
<div>Item {</div><div>  property MyCppType myCppType // WORKS</div><div>}</div><div><br></div><div>// FILE: MyItem1.qml</div><div><div>import QtQuick 2.0</div><div>import my.custom.cpp 1.0 as MyCpp   //<==NOTE "as"</div>
<div><br></div><div>Item {</div><div>  property MyCpp.MyCppType myCppType // NOT WORK</div><div>}</div><div><br></div></div><div>QUESTION:  If I import the C++ custom types with an "as MyCpp", then I can no longer use the type as a "property" within QML.  Dropping the "as-module" name works.</div>
<div><br></div><div>The compile error is at the "dot" separating the "MyCpp" from "MyCppType", with an error:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
 property MyCpp.MyCppType myCppType<br>            ^<br>  "Unexpected token '.'"</blockquote><div><br></div><div>I assume package/namespace/plugin scoping names are not allowed for defining properties in QML?  Does this mean you can't use "as-namespaces" in a QML file when you want that C++ type as a "property"?</div>
<div><br></div><div>Just curious.  Thanks!</div><div><br></div><div>--charley</div><div><br></div>