Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

use loader to load the components come with Qt(ex: Rectangle)

$
0
0
A simple example iimport QtQuick 2.0 import QtGraphicalEffects 1.0   Rectangle {     width: 640     height: 480       Loader{        id: loader          anchors.fill: parent     }       Component.onCompleted: {         loader.source("DirectionalBlur.qml")     } } However, this wouldn’t work, is it possible to load the build in qml component by loader?

Viewing all articles
Browse latest Browse all 4972

Trending Articles