did you try:
import "qrc:/content/";
import SkyComponents 1.0;
import "qrc:/content/";
import SkyComponents 1.0;
To copy to clipboard, switch view to plain text mode
i tested this on my side, it appears to work as expected:
import QtQuick 1.0;
import 'qrc:/builtin/qml/';
import 'qrc:/builtin/js/netsh.js' as Netsh;
FrameDark {
id: btnLoginText
width: 150
height: 32
text: "Connect"
anchors.bottom: parent.bottom
anchors.bottomMargin: 0
anchors.horizontalCenter: parent.horizontalCenter
onClicked: { Netsh.loginClicked(); }
}
import QtQuick 1.0;
import 'qrc:/builtin/qml/';
import 'qrc:/builtin/js/netsh.js' as Netsh;
FrameDark {
id: btnLoginText
width: 150
height: 32
text: "Connect"
anchors.bottom: parent.bottom
anchors.bottomMargin: 0
anchors.horizontalCenter: parent.horizontalCenter
onClicked: { Netsh.loginClicked(); }
}
To copy to clipboard, switch view to plain text mode
actually, i should probably also provide this:
my qrc:
<RCC>
<qresource prefix="/builtin">
<file alias="js/netsh.js">../js/netsh.js</file>
<file alias="qml/qmldir">../qml/qmldir</file>
<file alias="qml/FrameDark.qml">../qml/FrameDark.qml</file>
<file alias="images/FrameDark/FrameDark.png">../images/FrameDark/FrameDark.png</file>
<file alias="images/FrameDark/FrameDarkA.png">../images/FrameDark/FrameDarkA.png</file>
</qresource>
</RCC>
<RCC>
<qresource prefix="/builtin">
<file alias="js/netsh.js">../js/netsh.js</file>
<file alias="qml/qmldir">../qml/qmldir</file>
<file alias="qml/FrameDark.qml">../qml/FrameDark.qml</file>
<file alias="images/FrameDark/FrameDark.png">../images/FrameDark/FrameDark.png</file>
<file alias="images/FrameDark/FrameDarkA.png">../images/FrameDark/FrameDarkA.png</file>
</qresource>
</RCC>
To copy to clipboard, switch view to plain text mode
and the qmldir (brace yourself, it's VERY LONG):
FrameDark FrameDark.qml
FrameDark FrameDark.qml
To copy to clipboard, switch view to plain text mode
and that QML import tracing envvar doodad shows:
QDeclarativeImports(file::/builtin/qml/rrcbs/login.qml)::addImport: "." -1.-1 File as ""
QDeclarativeImports(file::/builtin/qml/rrcbs/login.qml)::addImport: "QtQuick" 1.0 Library as ""
QDeclarativeImports(file::/builtin/qml/rrcbs/login.qml)::addImport: "qrc:/builtin/qml/" -1.-1 File as ""
QDeclarativeImports(file::/builtin/qml/rrcbs/login.qml::importExtension: loaded ":/builtin/qml//qmldir"
QDeclarativeImports(file::/builtin/qml/rrcbs/login.qml)::resolveType: "Rectangle" => "QDeclarativeRectangle"
QDeclarativeImports(file::/builtin/qml/rrcbs/login.qml)::resolveType: "Text" => "QDeclarativeText"
QDeclarativeImports(file::/builtin/qml/rrcbs/login.qml)::resolveType: "TextInput" => "QDeclarativeTextInput"
QDeclarativeImports
(file::/builtin
/qml
/rrcbs
/login.
qml)::resolveType: "FrameDark" =>
QUrl("qrc:/builtin/qml/FrameDark.qml") QDeclarativeImports(qrc:/builtin/qml/FrameDark.qml)::addImport: "." -1.-1 File as ""
QDeclarativeImports(qrc:/builtin/qml/FrameDark.qml::importExtension: loaded ":/builtin/qml/qmldir"
QDeclarativeImports(file::/builtin/qml/rrcbs/login.qml)::addImport: "." -1.-1 File as ""
QDeclarativeImports(file::/builtin/qml/rrcbs/login.qml)::addImport: "QtQuick" 1.0 Library as ""
QDeclarativeImports(file::/builtin/qml/rrcbs/login.qml)::addImport: "qrc:/builtin/qml/" -1.-1 File as ""
QDeclarativeImports(file::/builtin/qml/rrcbs/login.qml::importExtension: loaded ":/builtin/qml//qmldir"
QDeclarativeImports(file::/builtin/qml/rrcbs/login.qml)::resolveType: "Rectangle" => "QDeclarativeRectangle"
QDeclarativeImports(file::/builtin/qml/rrcbs/login.qml)::resolveType: "Text" => "QDeclarativeText"
QDeclarativeImports(file::/builtin/qml/rrcbs/login.qml)::resolveType: "TextInput" => "QDeclarativeTextInput"
QDeclarativeImports(file::/builtin/qml/rrcbs/login.qml)::resolveType: "FrameDark" => QUrl("qrc:/builtin/qml/FrameDark.qml")
QDeclarativeImports(qrc:/builtin/qml/FrameDark.qml)::addImport: "." -1.-1 File as ""
QDeclarativeImports(qrc:/builtin/qml/FrameDark.qml::importExtension: loaded ":/builtin/qml/qmldir"
To copy to clipboard, switch view to plain text mode
Bookmarks