Qt basic code.