Thank you Girish, I guess we were looking for a solution where it is the C++ 
code that drives the loading of the qml files. Our solution keeps crashing 
after a setSource is executed. With your clicker.qml , we would like to 
implement something like this:

Rectangle {
signal change();--      MouseArea {             anchors.fill: parent            
    onClicked:{                container.change()                }      }---}
DeclarativeView::DeclarativeView(QWidget* parent)    :QDeclarativeView(parent){
 setSource(QUrl::fromLocalFile("./clicker.qml"));
 QObject *test= dynamic_cast<QObject*>(rootObject ());
 QObject::connect(test, SIGNAL(change()), this, SLOT(doit()));}
void DeclarativeView::doit(){    
setSource(QUrl::fromLocalFile("./another.qml"));}

Thanks,
Bartosh
                                          
_______________________________________________
Qt-qml mailing list
Qt-qml@qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to