Posts by Luigi • 101 points
2 posts
-
3
votes1
answer45
viewsA: How to create a mask between a QML image and a Qtquick element
You can use Qml’s Opacitymask. Example: import QtQuick 2.0 import QtGraphicalEffects 1.0 Item { width: 300 height: 300 Image { id: bug source: "images/bug.jpg" sourceSize: Qt.size(parent.width,…
-
4
votes2
answers78
viewsA: Dynamic/stochastic object allocation in QML
first you have to give a size to the component 2º The createComponent operation is asynchronous by default. So you have to wait for the component to be loaded. 3º You need to define the relative or…