Changes to the examples to fit updates to qtgui.