Fixup and cleanup examples to make them work properly.


This fixes some regressions introduced by previous commits and ensures
that the examples work as intended. While at it, the code is cleaned up
a bit by using resources instead of referencing files in the source dir.

Change-Id: I01da305429dcdebcb96284b7110c59f3090b2201
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
commitb86be10882236d269817c42daa1bc3fa49fe78af
parent4d3167b97b8e48a9fcdb1c2b86467d75e7d669eb
authorMilian Wolff <milian.wolff@kdab.com>
committerThe Qt Project <gerrit-noreply@qt-project.org>
commit timeWed, 8 Jan 2014 15:04:53 +0100