qt - I need to connect a ComponetA Signal to a method of another ComponentB -
i need create componentc dynamically when button of componenta clicked , componentc must created in componentb not accessible through id componenta.
so how realisable qml ?
thanks.
a signal can return object returned called slot:
int b::slot() { return 12; } void a::test() { connect( this, signal(sig()), objectb, slot(slot()); int = emit sig(); // should equal 12 }
but, don't know if it's expected behavior...