With a null modem cable (or Ser1 on the Q40 to Ser2 on the QL), it should be fairly simple to send ASCII data (and possibly binary).
When I was using my Z88 and the QL, to copy data from the Z88 to the QL all I did on the QL was: copy ser1_ to ram1_file_txt and then have the Z88 send the file. When the Z88 was done, I hit CTRL-C on the QL to break out of the copy. Worked like a champ. The same principle should work for the Q40 to QL xfer. Tim Swenson