diff options
author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-02-09 12:29:37 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-02-09 11:58:28 +0000 |
commit | 43ba79acb9ca4080b950c3273f2e237593c80172 (patch) | |
tree | cf415cb0361f56443793a3bdd393b6a337e0b254 | |
parent | 5d935008641cfd625678468bdcf84cbd69c37bee (diff) | |
download | qtquick1-43ba79acb9ca4080b950c3273f2e237593c80172.tar.gz |
Fix Url in layoutitem example.
Fix warnings:
WARNING: Unexpected stderr:
QDeclarativeComponent: Component is not ready
QGraphicsLinearLayout::insertItem: cannot insert null item
found while mass-testing examples.
Change-Id: I0af369ca7f4d59d822ed7b0c8bd8dcd4cc34ead7
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
-rw-r--r-- | examples/declarative/cppextensions/qgraphicslayouts/layoutitem/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/declarative/cppextensions/qgraphicslayouts/layoutitem/main.cpp b/examples/declarative/cppextensions/qgraphicslayouts/layoutitem/main.cpp index 58e36ada..73738375 100644 --- a/examples/declarative/cppextensions/qgraphicslayouts/layoutitem/main.cpp +++ b/examples/declarative/cppextensions/qgraphicslayouts/layoutitem/main.cpp @@ -64,7 +64,7 @@ int main(int argc, char* argv[]) //Add the QML snippet into the layout QDeclarativeEngine engine; - QDeclarativeComponent c(&engine, QUrl(":layoutitem.qml")); + QDeclarativeComponent c(&engine, QUrl("qrc:layoutitem.qml")); QGraphicsLayoutItem* obj = qobject_cast<QGraphicsLayoutItem*>(c.create()); layout->addItem(obj); |