The error looks Qt-related, but it almost certainly has nothing to do with the code that was posted.