Multiple fixups

- Fixed a problem in Query::Execution::WaitForResult.
- Fixed an example that used Query::Execution.
- Fixed a problem with mouse motion events in the Qt/GL example harness.