Fixed examples to use Qt4 or Qt5 depending on user preference

Change-Id: Ieb302552284d52ed61a4f552ec4526c176392af8