Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

I need to connect a ComponentA Signal to a method of another ComponentB

$
0
0
You can also use the dynamic signal connection syntax. Component.onCompleted: {     someObjectId.someSignal.connect(otherObjectId.methodName) } A connections element is less error-prone, and more declarative – but does involve the instantiation of a QObject, and has some performance implications. In most cases, I’d suggest the use of the Connections element, but there are times when using an imperative signal connection is the better choice. Cheers, Chris.

Viewing all articles
Browse latest Browse all 4972

Trending Articles