Quote Originally Posted by MarkoSan View Post
Ok, so there is no way to handle this via signal/slot
Of course there is, I just pointing out that in this case it is unnecessary since it can be done much more elegantly using a property binding.

But if you insist on doing it the ugly way
Qt Code:
  1. Connections
  2. {
  3. target: ueApplicationStatus
  4.  
  5. onUeSignalDatabaseConnectionChanged:
  6. {
  7. state=(status===UeTypeDatabaseConnectionStatus.CONNECTED) ?
  8. "ueStatusIndicatorDabaseConnected" : "ueStatusIndicatorDabaseNotConnected"
  9. }
  10. } // Connections
To copy to clipboard, switch view to plain text mode 
- you want to handle the signal of the ueApplicationStatus object (which has a nice property that you should be using instead)
- the syntax for the conditional assignment is:
Qt Code:
  1. condition ? valueIf : valueElse
To copy to clipboard, switch view to plain text mode 

Cheers,
_