QT sample compiles