Yes, your laptop and all its accessories have to fit within your hand baggage allowance.
For example, if your allowance is one piece, you are not allowed to bring your laptop on board in a separate bag next to your hand baggage, as this would be counted as two pieces. In this case, we suggest you pack all items in one bag.
Check your baggage allowance in the link below
For other enquiries contact your local offices, contact details can be found in the following link https://www.qatarairways.com/en/worldwide-offices.html