<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2024"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="ck0000890196-20250120.xsd" xlink:type="simple"/>
    <context id="duration_2025-01-20_to_2025-01-20">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000890196</identifier>
        </entity>
        <period>
            <startDate>2025-01-20</startDate>
            <endDate>2025-01-20</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="duration_2025-01-20_to_2025-01-20"
      id="Hidden_dei_EntityCentralIndexKey_duration_2025-01-20_to_2025-01-20">0000890196</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="duration_2025-01-20_to_2025-01-20"
      id="Hidden_dei_AmendmentFlag_duration_2025-01-20_to_2025-01-20">false</dei:AmendmentFlag>
    <dei:DocumentType contextRef="duration_2025-01-20_to_2025-01-20" id="Fact_1">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="duration_2025-01-20_to_2025-01-20" id="Fact_0">2025-01-20</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName contextRef="duration_2025-01-20_to_2025-01-20" id="Fact_2">BLACKROCK MUNIYIELD QUALITY FUND, INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="duration_2025-01-20_to_2025-01-20" id="Fact_11">MD</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="duration_2025-01-20_to_2025-01-20" id="Fact_13">811-06660</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="duration_2025-01-20_to_2025-01-20" id="Fact_12">22-3170744</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="duration_2025-01-20_to_2025-01-20" id="Fact_16">50 Hudson Yards</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown contextRef="duration_2025-01-20_to_2025-01-20" id="ixv-214">New York</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="duration_2025-01-20_to_2025-01-20" id="ixv-215">NY</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="duration_2025-01-20_to_2025-01-20" id="Fact_19">10001</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="duration_2025-01-20_to_2025-01-20" id="Fact_15">212</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="duration_2025-01-20_to_2025-01-20" id="Fact_14">810-5300</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="duration_2025-01-20_to_2025-01-20" id="Fact_4">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="duration_2025-01-20_to_2025-01-20" id="Fact_6">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="duration_2025-01-20_to_2025-01-20" id="Fact_8">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="duration_2025-01-20_to_2025-01-20" id="Fact_10">false</dei:PreCommencementIssuerTenderOffer>
</xbrl>
