Writing a face recognition library interface is hard. Really hard.
lbrandy.com
lbrandy.com
How so? This sounds like a simple case of using continuations. If something odd happens, call the callback. The user code can then decide what to do; either continue the computation, abort it, or do something else.
(BTW, about Qt being the most elegant library... does it still require "moc"? If so, that's not exactly elegant; at best it's a horrible hack, at worst, Qt is a programming language that compiles to C++. Neither are particularly elegant.)