I've changed the code in the way you instructed, i get same segmentation fault.
Qt 5.3 Opensource & Creator 3.1.2
Forum Rules
Bookmarks