QDeclarativeView.The QDeclarativeView class provides a widget for displaying a Qt Declarative user interface.
So, yes, you should use QDeclarativeView.
QDeclarativeView.The QDeclarativeView class provides a widget for displaying a Qt Declarative user interface.
So, yes, you should use QDeclarativeView.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Exactly I used it. I have a QDeclarativeView object(called viewer) in myWindow widget. In the constructor of myWindow I called the setSource method with my .qml file. But when I compile it another window also opens for my .qml file but there isn't anything in it.( There should be a simple picture)
Are you sure that a path to *.qml file is correct?![]()
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
jeff28 (28th August 2012)
Well now I am not sureI typed in "QUrl::fromLocalFile("main.qml")" in my setSource method. In all of the examples that I saw it was like this so I did like that too..
Bookmarks