Reading/writing text form/to the console int Qt