Passing values and url from cpp to qml
Solved
General and Desktop
-
wrote on 10 Jun 2016, 07:08 last edited by
How to pass the values and url from cpp to qml?
-
wrote on 10 Jun 2016, 07:10 last edited by
-
wrote on 10 Jun 2016, 07:13 last edited by
@karti-gesar I did'nt need data conversion.I need to pass the values or url to qml
-
Hi,
You can use the technique described here.
If it doesn't suite your needs, then you'll have to give more details about your use case.
-
wrote on 13 Jun 2016, 04:05 last edited by
@main.qml
MediaPlayer
{
id:mediaplayer
source:"C:/Users/bharathiraja/Desktop/video.mp4";
autoPlay:true
loops:Animation.Infinite
}
VideoOutput
{
width:512
height:538id: videooutput source: mediaplayer }
@
I want to pass the url path of the video from cpp file. -
wrote on 13 Jun 2016, 09:05 last edited by
I get it through context property..
Thanks for the reply..
2/6