re-implemented companions + fixed Qt examples