This visa can be extended to cover a maximum of six months for immediate family members. In order to get an extension, family members who wish to stay longer than one month have to undergo a medical examination within 72 hours of arriving in Qatar. Second-degree relatives can extend their stay to a total of three months. More information here:

Family Visa in Qatar