First time here? Check out the FAQ!
When you have opencv3.0.0 don't use Waitkey. I have learned it causes your Qt Creator apps to crash with GTK errors. You can try I sleep (