<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0508</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2024-07-03</periodOfReport>

    <issuer>
        <issuerCik>0001844505</issuerCik>
        <issuerName>QT IMAGING HOLDINGS, INC.</issuerName>
        <issuerTradingSymbol>QTI</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0000939568</rptOwnerCik>
            <rptOwnerName>KLOCK JOHN C JR</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>QT IMAGING HOLDINGS, INC.</rptOwnerStreet1>
            <rptOwnerStreet2>3 HAMILTON LANDING SUITE 160</rptOwnerStreet2>
            <rptOwnerCity>NOVATO</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>94949</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>1</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>0</aff10b5One>

    <nonDerivativeTable>
        <nonDerivativeHolding>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>2881140</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                    <footnoteId id="F1"/>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>By John C. Klock, Jr. and Cynthia L. Klock Trust Dated 7/27/07</value>
                    <footnoteId id="F1"/>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeHolding>
    </nonDerivativeTable>

    <derivativeTable>
        <derivativeTransaction>
            <securityTitle>
                <value>Stock Option (right to buy)</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>0.748</value>
            </conversionOrExercisePrice>
            <transactionDate>
                <value>2024-07-03</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>A</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>40000</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>0</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <exerciseDate>
                <footnoteId id="F2"/>
            </exerciseDate>
            <expirationDate>
                <value>2034-07-03</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>40000</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>40000</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeTransaction>
    </derivativeTable>

    <footnotes>
        <footnote id="F1">The Common Stock are held directly by John C. Klock, Jr. and Cynthia L. Klock Trust Dated 7/27/07 (the &quot;Trust&quot;).  The Common Stock held by the Trust are beneficially owned jointly by Dr. John C. Klock, Jr., the Issuer's Director and Cynthia L. Klock, wife of Dr. John C. Klock, Jr., who jointly have sole voting and dispositive power over the shares held by the Trust.</footnote>
        <footnote id="F2">One-third of the option will vest on February 15, 2025, and the remaining two thirds will vest in eight equal quarterly installments on each subsequent May 15, August 15, November 15 and February 15, such that the option will be fully vested on February 15, 2027, subject to the Reporting Person's continued service to the Issuer, through each vesting date.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>/s/ John C. Klock, Jr.</signatureName>
        <signatureDate>2024-07-10</signatureDate>
    </ownerSignature>
</ownershipDocument>
