QML COMPONENT IMAGE
-
Hi this is vishal. Above image is the one which i am working on. When you guys see the image you can see a red circle on the qml component. My question to you guys is that can we put image on top of that qml component or not. If we can, can you guys please provide me the code or technique to do so.Thanks.
-
The image-upload feature on our forum is broken, you might see the picture but other users don't. Please upload your image to a image hoster of your choice (e.g. postimage.org) and embed the pic here with the following markup:
![alternate text](image-url)
. See also How to insert image on this forum and Hitchhiker's Visual Guide to the Qt Forum. -
-
@vishalreddy can you guys see the image now ?
-
@vishalreddy Yes. Sorry for the inconvenience.
-
@Wieland ok, if anyone know the solution of the problem please provide me.
Thanks
-
@vishalreddy said in QML COMPONENT IMAGE:
My question to you guys is that can we put image on top of that qml component or not.
Yes
If we can, can you guys please provide me the code or technique to do so
I never used designer, could you show your code?
-
import QtQuick 2.4 import QtQuick.Extras 1.4 import QtQuick.Controls.Styles 1.4 Rectangle { property string vishal: "unit" property int max :100 property int min: 0 property int gaugevalue: 0 width: 400 height: 400 color: "#020202" gradient: Gradient { GradientStop { position: 0 color: "#020202" } GradientStop { position: 1 color: "#000000" } } CircularGauge { id: circularGauge x: 17 y: 54 width:328 height:308 value: gaugevalue maximumValue: max minimumValue: min Text { id: text1 anchors.bottom: parent.bottom anchors.bottomMargin: 52 x:117 y: 225 width: 46 height: 26 color: "#f4f2f2" text: qsTr(vishal) font.pixelSize: 12 } } }