Quote Originally Posted by tonnot View Post
The only difference between the original code and mine is that I use a tableView accesdesd 'via' the ui->.
And that is exactly the difference why their code is working and yours not! And it is basic C++, so take any c++ book and read about dynamic and static allocation and how long objects lives.