Simple coding messages based on Qt