v3.21.2

Fair Value Measurements - Financial Assets and Liabilities Measured at Fair Value on Recurring Basis (Details) - USD ($) $ in Thousands | Sep. 30, 2021 | Dec. 31, 2020
--- | --- | ---
Fair Value, Measurements, Recurring |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Cash equivalents | $ 201,220 | $ 234,492
Investments | 99,805 | 131,352
Fair Value, Measurements, Recurring | Quoted Prices in Active Markets for Identical Assets (Level I) |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Cash equivalents | 176,144 | 188,469
Investments | 0 | 0
Fair Value, Measurements, Recurring | Significant Other Observable Inputs (Level II) |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Cash equivalents | 25,076 | 46,023
Investments | 99,805 | 131,352
Fair Value, Measurements, Recurring | Significant Unobservable Inputs (Level III) |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Cash equivalents | 0 | 0
Investments | 0 | 0
Corporate bonds and commercial paper | Fair Value, Measurements, Recurring |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investments | 36,466 | 31,239
Corporate bonds and commercial paper | Fair Value, Measurements, Recurring | Quoted Prices in Active Markets for Identical Assets (Level I) |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investments | 0 | 0
Corporate bonds and commercial paper | Fair Value, Measurements, Recurring | Significant Other Observable Inputs (Level II) |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investments | 36,466 | 31,239
Corporate bonds and commercial paper | Fair Value, Measurements, Recurring | Significant Unobservable Inputs (Level III) |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investments | 0 | 0
Certificates of deposit | Fair Value, Measurements, Recurring |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investments | 12,161 | 10,007
Certificates of deposit | Fair Value, Measurements, Recurring | Quoted Prices in Active Markets for Identical Assets (Level I) |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investments | 0 | 0
Certificates of deposit | Fair Value, Measurements, Recurring | Significant Other Observable Inputs (Level II) |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investments | 12,161 | 10,007
Certificates of deposit | Fair Value, Measurements, Recurring | Significant Unobservable Inputs (Level III) |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investments | 0 | 0
U.S. government securities | Fair Value, Measurements, Recurring |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investments | 51,178 | 90,106
U.S. government securities | Fair Value, Measurements, Recurring | Quoted Prices in Active Markets for Identical Assets (Level I) |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investments | 0 | 0
U.S. government securities | Fair Value, Measurements, Recurring | Significant Other Observable Inputs (Level II) |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investments | 51,178 | 90,106
U.S. government securities | Fair Value, Measurements, Recurring | Significant Unobservable Inputs (Level III) |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investments | 0 | 0
Money market funds |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Cash equivalents | 176,144 | 188,469
Money market funds | Fair Value, Measurements, Recurring |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Cash equivalents | 176,144 | 188,469
Money market funds | Fair Value, Measurements, Recurring | Quoted Prices in Active Markets for Identical Assets (Level I) |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Cash equivalents | 176,144 | 188,469
Money market funds | Fair Value, Measurements, Recurring | Significant Other Observable Inputs (Level II) |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Cash equivalents | 0 | 0
Money market funds | Fair Value, Measurements, Recurring | Significant Unobservable Inputs (Level III) |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Cash equivalents | 0 | 0
Certificates of deposit |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Cash equivalents | 25,076 | 25,028
Certificates of deposit | Fair Value, Measurements, Recurring |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Cash equivalents | 25,076 | 25,028
Certificates of deposit | Fair Value, Measurements, Recurring | Quoted Prices in Active Markets for Identical Assets (Level I) |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Cash equivalents | 0 | 0
Certificates of deposit | Fair Value, Measurements, Recurring | Significant Other Observable Inputs (Level II) |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Cash equivalents | 25,076 | 25,028
Certificates of deposit | Fair Value, Measurements, Recurring | Significant Unobservable Inputs (Level III) |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Cash equivalents | $ 0 | 0
Corporate bonds and commercial paper |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Cash equivalents |  | 996
Corporate bonds and commercial paper | Fair Value, Measurements, Recurring |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Cash equivalents |  | 996
Corporate bonds and commercial paper | Fair Value, Measurements, Recurring | Quoted Prices in Active Markets for Identical Assets (Level I) |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Cash equivalents |  | 0
Corporate bonds and commercial paper | Fair Value, Measurements, Recurring | Significant Other Observable Inputs (Level II) |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Cash equivalents |  | 996
Corporate bonds and commercial paper | Fair Value, Measurements, Recurring | Significant Unobservable Inputs (Level III) |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Cash equivalents |  | 0
U.S. government securities |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Cash equivalents |  | 19,999
U.S. government securities | Fair Value, Measurements, Recurring |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Cash equivalents |  | 19,999
U.S. government securities | Fair Value, Measurements, Recurring | Quoted Prices in Active Markets for Identical Assets (Level I) |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Cash equivalents |  | 0
U.S. government securities | Fair Value, Measurements, Recurring | Significant Other Observable Inputs (Level II) |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Cash equivalents |  | 19,999
U.S. government securities | Fair Value, Measurements, Recurring | Significant Unobservable Inputs (Level III) |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Cash equivalents |  | $ 0

X
- Definition Fair value portion of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. + References No definition available. + Details
Name: | us-gaap_CashAndCashEquivalentsFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Fair value portion of investment securities, including, but not limited to, marketable securities, derivative financial instruments, and investments accounted for under the equity method. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258 + Details
Name: | us-gaap_InvestmentsFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | us-gaap_FairValueByMeasurementFrequencyAxis=us-gaap_FairValueMeasurementsRecurringMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel1Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel2Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel3Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=qtwo_CorporateBondsandCommercialPaperMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_CertificatesOfDepositMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_USTreasuryAndGovernmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CashAndCashEquivalentsAxis=us-gaap_MoneyMarketFundsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CashAndCashEquivalentsAxis=us-gaap_CertificatesOfDepositMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CashAndCashEquivalentsAxis=qtwo_CorporateBondsandCommercialPaperMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CashAndCashEquivalentsAxis=us-gaap_USTreasuryAndGovernmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |