$ 0 0 Hi, I tested your code on Ubuntu 14.04 with Qt 5.2.1 and it works as desired. What is your development environment ?