You only need to complete the following:
1. On the airline's website, go to the Manage My Trip area.
2. To retrieve your booking, enter the booking reference.
3. To cancel a flight segment, choose it.
4. To finish the process, submit the refund request.
If you want to know about ticket cancellation you can visit here Qatar Airways 24 Hour Cancellation policy