Don't you think you should have mentioned that you use Qt Creator? This is, by the way, a wrong section too. Moving the thread...