I tried to run this program using visual studio 10 with a qt addin-1.19 in it. The code runs fine.