OK, I see your problem. QPhoneCallManager (phoneLine) has a statesCahnged() signal, but that's only after the call has been placed on the calls list, which doesn't happen until after it has been dialed. The only thing I can suggest is that when you call the create() method to place a call, grab and save the QPhoneCall instance that is returned and use QTimer to poll the QPhoneCall::state() (or QPhoneCall::dialing()) at some reasonably fast rate. At least you have a mechanism to actually do something about the call before it is dialed (like hang up if dialing takes too long, etc). I looked through QPhoneCall for some type of signal you could tie into, but it doesn't have any!
Bookmarks