<?xml version="1.0" encoding="US-ASCII"?>
<!--XBRL Document Created with Wdesk from Workiva-->
<!-- -->
<link:linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <link:roleRef roleURI="http://www.qualys.com/role/BusinessCombinationBusinessCombination" xlink:href="qlys-20190630.xsd#BusinessCombinationBusinessCombination" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/BusinessCombinationNarrativeDetails" xlink:href="qlys-20190630.xsd#BusinessCombinationNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/CommitmentsAndContingencies" xlink:href="qlys-20190630.xsd#CommitmentsAndContingencies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/CommitmentsAndContingenciesLeaseNarrativeDetails" xlink:href="qlys-20190630.xsd#CommitmentsAndContingenciesLeaseNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/CompanyAndSummaryOfSignificantAccountingPolicies" xlink:href="qlys-20190630.xsd#CompanyAndSummaryOfSignificantAccountingPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/CompanyAndSummaryOfSignificantAccountingPoliciesDetails" xlink:href="qlys-20190630.xsd#CompanyAndSummaryOfSignificantAccountingPoliciesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/CompanyAndSummaryOfSignificantAccountingPoliciesPolicies" xlink:href="qlys-20190630.xsd#CompanyAndSummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/CondensedConsolidatedBalanceSheets" xlink:href="qlys-20190630.xsd#CondensedConsolidatedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/CondensedConsolidatedBalanceSheetsParenthetical" xlink:href="qlys-20190630.xsd#CondensedConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/CondensedConsolidatedStatementsOfCashFlows" xlink:href="qlys-20190630.xsd#CondensedConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/CondensedConsolidatedStatementsOfComprehensiveIncome" xlink:href="qlys-20190630.xsd#CondensedConsolidatedStatementsOfComprehensiveIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/CondensedConsolidatedStatementsOfOperations" xlink:href="qlys-20190630.xsd#CondensedConsolidatedStatementsOfOperations" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/ConsolidatedStatementsOfStockholdersEquity" xlink:href="qlys-20190630.xsd#ConsolidatedStatementsOfStockholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/DocumentAndEntityInformation" xlink:href="qlys-20190630.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/FairValueOfFinancialInstruments" xlink:href="qlys-20190630.xsd#FairValueOfFinancialInstruments" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/FairValueOfFinancialInstrumentsCashAndCashEquivalentsAvailableForSaleSecuritiesReconciliationDetails" xlink:href="qlys-20190630.xsd#FairValueOfFinancialInstrumentsCashAndCashEquivalentsAvailableForSaleSecuritiesReconciliationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/FairValueOfFinancialInstrumentsChangesInOtherComprehensiveIncomeDetails" xlink:href="qlys-20190630.xsd#FairValueOfFinancialInstrumentsChangesInOtherComprehensiveIncomeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/FairValueOfFinancialInstrumentsContractualMaturityDetails" xlink:href="qlys-20190630.xsd#FairValueOfFinancialInstrumentsContractualMaturityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/FairValueOfFinancialInstrumentsDerivativesDetails" xlink:href="qlys-20190630.xsd#FairValueOfFinancialInstrumentsDerivativesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/FairValueOfFinancialInstrumentsFairValueHierarchyDetails" xlink:href="qlys-20190630.xsd#FairValueOfFinancialInstrumentsFairValueHierarchyDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/FairValueOfFinancialInstrumentsGainsLossesRecognizedDetails" xlink:href="qlys-20190630.xsd#FairValueOfFinancialInstrumentsGainsLossesRecognizedDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/FairValueOfFinancialInstrumentsTables" xlink:href="qlys-20190630.xsd#FairValueOfFinancialInstrumentsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/GoodwillAndIntangibleAssetsNet" xlink:href="qlys-20190630.xsd#GoodwillAndIntangibleAssetsNet" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/GoodwillAndIntangibleAssetsNetCarryingValueOfIntangibleAssetsDetails" xlink:href="qlys-20190630.xsd#GoodwillAndIntangibleAssetsNetCarryingValueOfIntangibleAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/GoodwillAndIntangibleAssetsNetFutureAmortizationDetails" xlink:href="qlys-20190630.xsd#GoodwillAndIntangibleAssetsNetFutureAmortizationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/GoodwillAndIntangibleAssetsNetTables" xlink:href="qlys-20190630.xsd#GoodwillAndIntangibleAssetsNetTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/IncomeTaxes" xlink:href="qlys-20190630.xsd#IncomeTaxes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/IncomeTaxesDetails" xlink:href="qlys-20190630.xsd#IncomeTaxesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/LeasesDetails" xlink:href="qlys-20190630.xsd#LeasesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/LeasesNotes" xlink:href="qlys-20190630.xsd#LeasesNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/LeasesTables" xlink:href="qlys-20190630.xsd#LeasesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/NetIncomePerShare" xlink:href="qlys-20190630.xsd#NetIncomePerShare" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/NetIncomePerShareDetails" xlink:href="qlys-20190630.xsd#NetIncomePerShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/NetIncomePerShareTables" xlink:href="qlys-20190630.xsd#NetIncomePerShareTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/PropertyAndEquipmentNet" xlink:href="qlys-20190630.xsd#PropertyAndEquipmentNet" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/PropertyAndEquipmentNetDetails" xlink:href="qlys-20190630.xsd#PropertyAndEquipmentNetDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/PropertyAndEquipmentNetTables" xlink:href="qlys-20190630.xsd#PropertyAndEquipmentNetTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/RevenueFromContractsWithCustomers" xlink:href="qlys-20190630.xsd#RevenueFromContractsWithCustomers" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/RevenueFromContractsWithCustomersAccountsReceivableNetDetails" xlink:href="qlys-20190630.xsd#RevenueFromContractsWithCustomersAccountsReceivableNetDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/RevenueFromContractsWithCustomersCommissionAssetBalancesDetails" xlink:href="qlys-20190630.xsd#RevenueFromContractsWithCustomersCommissionAssetBalancesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/RevenueFromContractsWithCustomersNarrativeDetails" xlink:href="qlys-20190630.xsd#RevenueFromContractsWithCustomersNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/RevenueFromContractsWithCustomersRevenueBySalesChannelDetails" xlink:href="qlys-20190630.xsd#RevenueFromContractsWithCustomersRevenueBySalesChannelDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/RevenueFromContractsWithCustomersTables" xlink:href="qlys-20190630.xsd#RevenueFromContractsWithCustomersTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/RevenueFromContractsWithCustomersUnbilledContractsDetails" xlink:href="qlys-20190630.xsd#RevenueFromContractsWithCustomersUnbilledContractsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/SegmentInformationAndInformationAboutGeographicArea" xlink:href="qlys-20190630.xsd#SegmentInformationAndInformationAboutGeographicArea" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/SegmentInformationAndInformationAboutGeographicAreaPropertyAndEquipmentNetDetails" xlink:href="qlys-20190630.xsd#SegmentInformationAndInformationAboutGeographicAreaPropertyAndEquipmentNetDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/SegmentInformationAndInformationAboutGeographicAreaRevenueByGeographicAreaDetails" xlink:href="qlys-20190630.xsd#SegmentInformationAndInformationAboutGeographicAreaRevenueByGeographicAreaDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/SegmentInformationAndInformationAboutGeographicAreaTables" xlink:href="qlys-20190630.xsd#SegmentInformationAndInformationAboutGeographicAreaTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/StockBasedCompensation" xlink:href="qlys-20190630.xsd#StockBasedCompensation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/StockBasedCompensationExpenseDetails" xlink:href="qlys-20190630.xsd#StockBasedCompensationExpenseDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/StockBasedCompensationRestrictedStockDetails" xlink:href="qlys-20190630.xsd#StockBasedCompensationRestrictedStockDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/StockBasedCompensationStockOptionPlanActivityDetails" xlink:href="qlys-20190630.xsd#StockBasedCompensationStockOptionPlanActivityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/StockBasedCompensationStockOptionsDetails" xlink:href="qlys-20190630.xsd#StockBasedCompensationStockOptionsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/StockBasedCompensationTables" xlink:href="qlys-20190630.xsd#StockBasedCompensationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/StockholdersEquity" xlink:href="qlys-20190630.xsd#StockholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/StockholdersEquityDetails" xlink:href="qlys-20190630.xsd#StockholdersEquityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.qualys.com/role/StockholdersEquityTables" xlink:href="qlys-20190630.xsd#StockholdersEquityTables" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension" xlink:type="simple" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/BusinessCombinationBusinessCombination" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/BusinessCombinationNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_9BB73C38D25B04099C2E1FA524C68505" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_81D8777A519A8D028DFF1FA524C3D9E2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_9BB73C38D25B04099C2E1FA524C68505" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_81D8777A519A8D028DFF1FA524C3D9E2" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_E8F6A34DEFBD09E7B4261FB9506698E2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_81D8777A519A8D028DFF1FA524C3D9E2" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_E8F6A34DEFBD09E7B4261FB9506698E2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_05EC835230FFC85D085D1FB951722BC6_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_E8F6A34DEFBD09E7B4261FB9506698E2" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_05EC835230FFC85D085D1FB951722BC6_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_05EC835230FFC85D085D1FB951722BC6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_E8F6A34DEFBD09E7B4261FB9506698E2" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_05EC835230FFC85D085D1FB951722BC6" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_DevelopedTechnologyMember" xlink:label="loc_qlys_DevelopedTechnologyMember_C37DDFCEAA5DCDB1DEAC1FBA09E4A5C5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_05EC835230FFC85D085D1FB951722BC6" xlink:to="loc_qlys_DevelopedTechnologyMember_C37DDFCEAA5DCDB1DEAC1FBA09E4A5C5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_B027F3BC39EA59A858051FA524C5E77B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_81D8777A519A8D028DFF1FA524C3D9E2" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_B027F3BC39EA59A858051FA524C5E77B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F42D413DD01C75B200301FA524C5A8A7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_B027F3BC39EA59A858051FA524C5E77B" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F42D413DD01C75B200301FA524C5A8A7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F42D413DD01C75B200301FA524C5A8A7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_B027F3BC39EA59A858051FA524C5E77B" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F42D413DD01C75B200301FA524C5A8A7" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_A1MobilityMember" xlink:label="loc_qlys_A1MobilityMember_6987C9B366DEFADE96EC1FA524C50F03" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F42D413DD01C75B200301FA524C5A8A7" xlink:to="loc_qlys_A1MobilityMember_6987C9B366DEFADE96EC1FA524C50F03" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_ADF27FA7F09576FF9BBF1FA524C6DA5C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_9BB73C38D25B04099C2E1FA524C68505" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_ADF27FA7F09576FF9BBF1FA524C6DA5C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_26402753ABE214C51D7F1FA524C6022F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_9BB73C38D25B04099C2E1FA524C68505" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_26402753ABE214C51D7F1FA524C6022F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_4B2669AE153BF0A7A9481FA524C6DFC1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_9BB73C38D25B04099C2E1FA524C68505" xlink:to="loc_us-gaap_Goodwill_4B2669AE153BF0A7A9481FA524C6DFC1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife" xlink:label="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_B2F5B6D08DE233AF55731FA524C722AB" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_9BB73C38D25B04099C2E1FA524C68505" xlink:to="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_B2F5B6D08DE233AF55731FA524C722AB" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.qualys.com/role/CommitmentsAndContingencies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/CommitmentsAndContingenciesLeaseNarrativeDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/CompanyAndSummaryOfSignificantAccountingPolicies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/CompanyAndSummaryOfSignificantAccountingPoliciesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems" xlink:label="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_097B5D815212FA0B88142033A89C8C18" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfErrorCorrectionsAndPriorPeriodAdjustmentRestatementTable" xlink:label="loc_us-gaap_ScheduleOfErrorCorrectionsAndPriorPeriodAdjustmentRestatementTable_6D4E492E611967EF96992033A89CB22A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_097B5D815212FA0B88142033A89C8C18" xlink:to="loc_us-gaap_ScheduleOfErrorCorrectionsAndPriorPeriodAdjustmentRestatementTable_6D4E492E611967EF96992033A89CB22A" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_B3EC21918BD8E4C4429E207B67AD32A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfErrorCorrectionsAndPriorPeriodAdjustmentRestatementTable_6D4E492E611967EF96992033A89CB22A" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_B3EC21918BD8E4C4429E207B67AD32A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingRelationshipDomain" xlink:label="loc_us-gaap_HedgingRelationshipDomain_BB5C9E6FD15DD05171A4207B67BA9B82_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_B3EC21918BD8E4C4429E207B67AD32A1" xlink:to="loc_us-gaap_HedgingRelationshipDomain_BB5C9E6FD15DD05171A4207B67BA9B82_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingRelationshipDomain" xlink:label="loc_us-gaap_HedgingRelationshipDomain_BB5C9E6FD15DD05171A4207B67BA9B82" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_B3EC21918BD8E4C4429E207B67AD32A1" xlink:to="loc_us-gaap_HedgingRelationshipDomain_BB5C9E6FD15DD05171A4207B67BA9B82" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashFlowHedgingMember" xlink:label="loc_us-gaap_CashFlowHedgingMember_B0873A225C9C110072AB207B6AEF7737" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_BB5C9E6FD15DD05171A4207B67BA9B82" xlink:to="loc_us-gaap_CashFlowHedgingMember_B0873A225C9C110072AB207B6AEF7737" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingDesignationAxis" xlink:label="loc_us-gaap_HedgingDesignationAxis_10E5613B773691EA7F42206F0859FDAE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfErrorCorrectionsAndPriorPeriodAdjustmentRestatementTable_6D4E492E611967EF96992033A89CB22A" xlink:to="loc_us-gaap_HedgingDesignationAxis_10E5613B773691EA7F42206F0859FDAE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_C24AEE30C8B6C58689E6206F085A2F85_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_10E5613B773691EA7F42206F0859FDAE" xlink:to="loc_us-gaap_HedgingDesignationDomain_C24AEE30C8B6C58689E6206F085A2F85_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_C24AEE30C8B6C58689E6206F085A2F85" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_10E5613B773691EA7F42206F0859FDAE" xlink:to="loc_us-gaap_HedgingDesignationDomain_C24AEE30C8B6C58689E6206F085A2F85" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_121496CFB8D0842AB62B207B69208B2E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_C24AEE30C8B6C58689E6206F085A2F85" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_121496CFB8D0842AB62B207B69208B2E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_EFA7FB09BD433ED66A0B2033A89C1C3E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfErrorCorrectionsAndPriorPeriodAdjustmentRestatementTable_6D4E492E611967EF96992033A89CB22A" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_EFA7FB09BD433ED66A0B2033A89C1C3E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_27A298A44E4622A20F4E2033A89C0B9B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_EFA7FB09BD433ED66A0B2033A89C1C3E" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_27A298A44E4622A20F4E2033A89C0B9B_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_27A298A44E4622A20F4E2033A89C0B9B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_EFA7FB09BD433ED66A0B2033A89C1C3E" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_27A298A44E4622A20F4E2033A89C0B9B" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_ForeignCurrencyContractEuroMember" xlink:label="loc_qlys_ForeignCurrencyContractEuroMember_D59F1680CC27EF4721CD2070776BD3DB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_27A298A44E4622A20F4E2033A89C0B9B" xlink:to="loc_qlys_ForeignCurrencyContractEuroMember_D59F1680CC27EF4721CD2070776BD3DB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForeignExchangeContractMember" xlink:label="loc_us-gaap_ForeignExchangeContractMember_2EB58D7DBC95140E9E982033A89C9656" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_27A298A44E4622A20F4E2033A89C0B9B" xlink:to="loc_us-gaap_ForeignExchangeContractMember_2EB58D7DBC95140E9E982033A89C9656" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_ForeignCurrencyContractPoundMember" xlink:label="loc_qlys_ForeignCurrencyContractPoundMember_E733F8AD9318BEAFFAD02071D670770D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_27A298A44E4622A20F4E2033A89C0B9B" xlink:to="loc_qlys_ForeignCurrencyContractPoundMember_E733F8AD9318BEAFFAD02071D670770D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsForNewAccountingPronouncementsAxis" xlink:label="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_754884B05A1033F87E412033A89C1BB4" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfErrorCorrectionsAndPriorPeriodAdjustmentRestatementTable_6D4E492E611967EF96992033A89CB22A" xlink:to="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_754884B05A1033F87E412033A89C1BB4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_3FCABFCDB1E083CF9DD42033A89CE779_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_754884B05A1033F87E412033A89C1BB4" xlink:to="loc_us-gaap_TypeOfAdoptionMember_3FCABFCDB1E083CF9DD42033A89CE779_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_3FCABFCDB1E083CF9DD42033A89CE779" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_754884B05A1033F87E412033A89C1BB4" xlink:to="loc_us-gaap_TypeOfAdoptionMember_3FCABFCDB1E083CF9DD42033A89CE779" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountingStandardsUpdate201602Member" xlink:label="loc_us-gaap_AccountingStandardsUpdate201602Member_9CFCAA2800C757CE13F42033A89C661E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_3FCABFCDB1E083CF9DD42033A89CE779" xlink:to="loc_us-gaap_AccountingStandardsUpdate201602Member_9CFCAA2800C757CE13F42033A89C661E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_49056EB80F28254AC5AC2033A89CF5A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_097B5D815212FA0B88142033A89C8C18" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_49056EB80F28254AC5AC2033A89CF5A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/invest/2013/invest-2013-01-31.xsd#invest_DerivativeNotionalAmount" xlink:label="loc_invest_DerivativeNotionalAmount_B165AFE18AEC959708AD2033A89CD313" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_097B5D815212FA0B88142033A89C8C18" xlink:to="loc_invest_DerivativeNotionalAmount_B165AFE18AEC959708AD2033A89CD313" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaap_ShareBasedCompensation_EA28DB2769EF090318E02033A89C7765" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_097B5D815212FA0B88142033A89C8C18" xlink:to="loc_us-gaap_ShareBasedCompensation_EA28DB2769EF090318E02033A89C7765" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CapitalizedComputerSoftwarePeriodIncreaseDecrease" xlink:label="loc_us-gaap_CapitalizedComputerSoftwarePeriodIncreaseDecrease_9CCC3F90AC7A244FFFED2083DBA516D7" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_097B5D815212FA0B88142033A89C8C18" xlink:to="loc_us-gaap_CapitalizedComputerSoftwarePeriodIncreaseDecrease_9CCC3F90AC7A244FFFED2083DBA516D7" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_CapitalizedComputerSoftwareUnamortized" xlink:label="loc_qlys_CapitalizedComputerSoftwareUnamortized_C0D8F49062F1D84165112033A89C4D2D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_097B5D815212FA0B88142033A89C8C18" xlink:to="loc_qlys_CapitalizedComputerSoftwareUnamortized_C0D8F49062F1D84165112033A89C4D2D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CapitalizedComputerSoftwareAmortization1" xlink:label="loc_us-gaap_CapitalizedComputerSoftwareAmortization1_ECDF30EBDEB0464A670C2033A89C3D91" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_097B5D815212FA0B88142033A89C8C18" xlink:to="loc_us-gaap_CapitalizedComputerSoftwareAmortization1_ECDF30EBDEB0464A670C2033A89C3D91" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermInvestments" xlink:label="loc_us-gaap_LongTermInvestments_13A371E82A7A6D8C912E2033A89CB4CE" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_097B5D815212FA0B88142033A89C8C18" xlink:to="loc_us-gaap_LongTermInvestments_13A371E82A7A6D8C912E2033A89CB4CE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_A794270E70278C1D61342033A89C2749" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_097B5D815212FA0B88142033A89C8C18" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_A794270E70278C1D61342033A89C2749" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalentsNoncurrent" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsNoncurrent_43EC7993F72809B9BED12033A89C5600" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_097B5D815212FA0B88142033A89C8C18" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsNoncurrent_43EC7993F72809B9BED12033A89C5600" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeaseLiability" xlink:label="loc_us-gaap_OperatingLeaseLiability_12B640127E133C09218E2033A89CCF38" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_097B5D815212FA0B88142033A89C8C18" xlink:to="loc_us-gaap_OperatingLeaseLiability_12B640127E133C09218E2033A89CCF38" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredRentReceivablesNet" xlink:label="loc_us-gaap_DeferredRentReceivablesNet_4943264DC47DC1A05DE02033A89CD559" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_097B5D815212FA0B88142033A89C8C18" xlink:to="loc_us-gaap_DeferredRentReceivablesNet_4943264DC47DC1A05DE02033A89CD559" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_CapitalizedComputerSoftwareAmortizationPeriod" xlink:label="loc_qlys_CapitalizedComputerSoftwareAmortizationPeriod_2847476DA76B1C54514C2033A89C34D4" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_097B5D815212FA0B88142033A89C8C18" xlink:to="loc_qlys_CapitalizedComputerSoftwareAmortizationPeriod_2847476DA76B1C54514C2033A89C34D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdvanceRoyalties" xlink:label="loc_us-gaap_AdvanceRoyalties_F4AE01C76C854E1B31CA2033A89CC78C" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_097B5D815212FA0B88142033A89C8C18" xlink:to="loc_us-gaap_AdvanceRoyalties_F4AE01C76C854E1B31CA2033A89CC78C" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_TenantImprovementAllowance" xlink:label="loc_qlys_TenantImprovementAllowance_0AC8E48B6260703F731F2033A89C8DE7" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_097B5D815212FA0B88142033A89C8C18" xlink:to="loc_qlys_TenantImprovementAllowance_0AC8E48B6260703F731F2033A89C8DE7" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.qualys.com/role/CompanyAndSummaryOfSignificantAccountingPoliciesPolicies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/CondensedConsolidatedBalanceSheets" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/CondensedConsolidatedBalanceSheetsParenthetical" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/CondensedConsolidatedStatementsOfCashFlows" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/CondensedConsolidatedStatementsOfComprehensiveIncome" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_C473F3FDBF3474267CA53F2E825B5E6F" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossTable" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_6CCDE07669F71E9C143C3F2E82595F72" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_C473F3FDBF3474267CA53F2E825B5E6F" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_6CCDE07669F71E9C143C3F2E82595F72" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_7FCCAE6199E5FFCF9DDC3F2E825A95EE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_6CCDE07669F71E9C143C3F2E82595F72" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_7FCCAE6199E5FFCF9DDC3F2E825A95EE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_8C5ECBC10F04F40BBFA33F2E825A4388_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_7FCCAE6199E5FFCF9DDC3F2E825A95EE" xlink:to="loc_us-gaap_EquityComponentDomain_8C5ECBC10F04F40BBFA33F2E825A4388_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_8C5ECBC10F04F40BBFA33F2E825A4388" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_7FCCAE6199E5FFCF9DDC3F2E825A95EE" xlink:to="loc_us-gaap_EquityComponentDomain_8C5ECBC10F04F40BBFA33F2E825A4388" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember" xlink:label="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_5C3B3C3ABFDD8418B3373F2E825A8631" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_8C5ECBC10F04F40BBFA33F2E825A4388" xlink:to="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_5C3B3C3ABFDD8418B3373F2E825A8631" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_316900F729B6E848C3BE3F2E825B419B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_C473F3FDBF3474267CA53F2E825B5E6F" xlink:to="loc_us-gaap_NetIncomeLoss_316900F729B6E848C3BE3F2E825B419B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesAbstract" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesAbstract_BC209C9F067ED3F196FE3F2E825B9C1C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_C473F3FDBF3474267CA53F2E825B5E6F" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesAbstract_BC209C9F067ED3F196FE3F2E825B9C1C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsNetOfTax_CEDC88FF882009D28AA93F2E825B90E1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_BC209C9F067ED3F196FE3F2E825B9C1C" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsNetOfTax_CEDC88FF882009D28AA93F2E825B90E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax_1383A763763FDAE2DC7F3F2E825B0EE1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_BC209C9F067ED3F196FE3F2E825B9C1C" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax_1383A763763FDAE2DC7F3F2E825B0EE1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_9642BAB3B33606DF87653F2E825C3590" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_BC209C9F067ED3F196FE3F2E825B9C1C" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_9642BAB3B33606DF87653F2E825C3590" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_18629B7A2D7AEEC5A4FD3F2E825C6CEF" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_BC209C9F067ED3F196FE3F2E825B9C1C" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_18629B7A2D7AEEC5A4FD3F2E825C6CEF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_10FFEBC06D8FB1164BC03F2E825CF332" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_BC209C9F067ED3F196FE3F2E825B9C1C" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_10FFEBC06D8FB1164BC03F2E825CF332" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_88F7F057BA882CDC92FD3F2E825CD36C" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_BC209C9F067ED3F196FE3F2E825B9C1C" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_88F7F057BA882CDC92FD3F2E825CD36C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_7108809C28877E5C9DF03F2E825CC511" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_C473F3FDBF3474267CA53F2E825B5E6F" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_7108809C28877E5C9DF03F2E825CC511" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_3EDB59F906C6EFAE2DF83F2E825C4820" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_C473F3FDBF3474267CA53F2E825B5E6F" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTax_3EDB59F906C6EFAE2DF83F2E825C4820" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.qualys.com/role/CondensedConsolidatedStatementsOfOperations" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/ConsolidatedStatementsOfStockholdersEquity" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_B402AFB80BDF98D45BB23F2E828D570B" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_1A215EF526F8EF70B3B23F2E828C37F8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_B402AFB80BDF98D45BB23F2E828D570B" xlink:to="loc_us-gaap_StatementTable_1A215EF526F8EF70B3B23F2E828C37F8" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_C2B7764DB03379B4916E3F2E828C8549" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_1A215EF526F8EF70B3B23F2E828C37F8" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_C2B7764DB03379B4916E3F2E828C8549" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_253AD909A4DACC52EF533F2E828CA01D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_C2B7764DB03379B4916E3F2E828C8549" xlink:to="loc_us-gaap_EquityComponentDomain_253AD909A4DACC52EF533F2E828CA01D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_253AD909A4DACC52EF533F2E828CA01D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_C2B7764DB03379B4916E3F2E828C8549" xlink:to="loc_us-gaap_EquityComponentDomain_253AD909A4DACC52EF533F2E828CA01D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_CD77C320356D6E8F92E63F2E828C9663" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_253AD909A4DACC52EF533F2E828CA01D" xlink:to="loc_us-gaap_CommonStockMember_CD77C320356D6E8F92E63F2E828C9663" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_A69B082C38C3513CD71C3F2E828D43B7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_253AD909A4DACC52EF533F2E828CA01D" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_A69B082C38C3513CD71C3F2E828D43B7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_38AF4B81015532B0F7DE3F2E828DAB52" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_253AD909A4DACC52EF533F2E828CA01D" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_38AF4B81015532B0F7DE3F2E828DAB52" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:label="loc_us-gaap_RetainedEarningsMember_2C45E71D14DB89A022933F2E828D371E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_253AD909A4DACC52EF533F2E828CA01D" xlink:to="loc_us-gaap_RetainedEarningsMember_2C45E71D14DB89A022933F2E828D371E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_D85409353B87D4D7D16F3F2E828DCF29" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_B402AFB80BDF98D45BB23F2E828D570B" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_D85409353B87D4D7D16F3F2E828DCF29" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_FF122B746774303BB7933F2E828EAD24" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_D85409353B87D4D7D16F3F2E828DCF29" xlink:to="loc_us-gaap_StockholdersEquity_FF122B746774303BB7933F2E828EAD24" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharesOutstanding" xlink:label="loc_us-gaap_SharesOutstanding_0C492FE2C2F38604767F3F2E828E28A3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_D85409353B87D4D7D16F3F2E828DCF29" xlink:to="loc_us-gaap_SharesOutstanding_0C492FE2C2F38604767F3F2E828E28A3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_9DF811E473B1F8330E483F2E828E8E1E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_D85409353B87D4D7D16F3F2E828DCF29" xlink:to="loc_us-gaap_NetIncomeLoss_9DF811E473B1F8330E483F2E828E8E1E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_157B7F48569DE335CE703F3BC7A849AB" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_D85409353B87D4D7D16F3F2E828DCF29" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_157B7F48569DE335CE703F3BC7A849AB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption" xlink:label="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_E8AB16B7DB061A9214563F3BC81881F7" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_D85409353B87D4D7D16F3F2E828DCF29" xlink:to="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_E8AB16B7DB061A9214563F3BC81881F7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_73A6C03DA708C77D2C953F2E828E5521" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_D85409353B87D4D7D16F3F2E828DCF29" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_73A6C03DA708C77D2C953F2E828E5521" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_4E0DFD471F59E8AAC2883F2E828E1E20" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_D85409353B87D4D7D16F3F2E828DCF29" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_4E0DFD471F59E8AAC2883F2E828E1E20" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_13846D6E0D2AD13C8C013F2E828F414B" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_D85409353B87D4D7D16F3F2E828DCF29" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_13846D6E0D2AD13C8C013F2E828F414B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_BA650C375C7621C15D183F2E828FB865" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_D85409353B87D4D7D16F3F2E828DCF29" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_BA650C375C7621C15D183F2E828FB865" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodShares" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodShares_FF5F3726D5D73F703CFE3F2E828F3CC3" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_D85409353B87D4D7D16F3F2E828DCF29" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodShares_FF5F3726D5D73F703CFE3F2E828F3CC3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodValue" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodValue_B94BE04A793A2C69B6B53F2E828F7099" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_D85409353B87D4D7D16F3F2E828DCF29" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodValue_B94BE04A793A2C69B6B53F2E828F7099" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_AdjustmentToAdditionalPaidInCapitalShareBasedCompensationTaxesRelatedToNetShareSettlementsOfEquityAwards" xlink:label="loc_qlys_AdjustmentToAdditionalPaidInCapitalShareBasedCompensationTaxesRelatedToNetShareSettlementsOfEquityAwards_7DA5AB4DE956B894294B3F2E828FCD08" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_D85409353B87D4D7D16F3F2E828DCF29" xlink:to="loc_qlys_AdjustmentToAdditionalPaidInCapitalShareBasedCompensationTaxesRelatedToNetShareSettlementsOfEquityAwards_7DA5AB4DE956B894294B3F2E828FCD08" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_StockIssuedDuringPeriodSharesRestrictedStockAwardVested" xlink:label="loc_qlys_StockIssuedDuringPeriodSharesRestrictedStockAwardVested_5FC32B974E8A16F71A1F3F2E828F9155" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_D85409353B87D4D7D16F3F2E828DCF29" xlink:to="loc_qlys_StockIssuedDuringPeriodSharesRestrictedStockAwardVested_5FC32B974E8A16F71A1F3F2E828F9155" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationRestrictedStockUnitsRequisiteServicePeriodRecognition" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationRestrictedStockUnitsRequisiteServicePeriodRecognition_259E4A71F190A64BE8633F2E8290E0EF" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_D85409353B87D4D7D16F3F2E828DCF29" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationRestrictedStockUnitsRequisiteServicePeriodRecognition_259E4A71F190A64BE8633F2E8290E0EF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_C1C9AA77B5E0B8C4ECBF3F2E829088ED" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_D85409353B87D4D7D16F3F2E828DCF29" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_C1C9AA77B5E0B8C4ECBF3F2E829088ED" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.qualys.com/role/DocumentAndEntityInformation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/FairValueOfFinancialInstruments" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/FairValueOfFinancialInstrumentsCashAndCashEquivalentsAvailableForSaleSecuritiesReconciliationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_8A2C13CF05F580B7328C3F2E8227C967" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByBalanceSheetGroupingTable" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_8045EA34ED06BC2FD82A3F2E82245FED" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_8A2C13CF05F580B7328C3F2E8227C967" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_8045EA34ED06BC2FD82A3F2E82245FED" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsAxis" xlink:label="loc_us-gaap_CashAndCashEquivalentsAxis_D36C840470A7C23707C53F2E8224625B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_8045EA34ED06BC2FD82A3F2E82245FED" xlink:to="loc_us-gaap_CashAndCashEquivalentsAxis_D36C840470A7C23707C53F2E8224625B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_434ECBAD285FC116A9193F2E82245A35_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CashAndCashEquivalentsAxis_D36C840470A7C23707C53F2E8224625B" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_434ECBAD285FC116A9193F2E82245A35_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_434ECBAD285FC116A9193F2E82245A35" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CashAndCashEquivalentsAxis_D36C840470A7C23707C53F2E8224625B" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_434ECBAD285FC116A9193F2E82245A35" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashEquivalentsMember" xlink:label="loc_us-gaap_CashEquivalentsMember_1255E26F42EE21A115D83F2E8225DD4A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_434ECBAD285FC116A9193F2E82245A35" xlink:to="loc_us-gaap_CashEquivalentsMember_1255E26F42EE21A115D83F2E8225DD4A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashMember" xlink:label="loc_us-gaap_CashMember_296B4346ABE20308AB343F2E822527B4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_434ECBAD285FC116A9193F2E82245A35" xlink:to="loc_us-gaap_CashMember_296B4346ABE20308AB343F2E822527B4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_886B514F6455D034C86C3F2E8225D78D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_8045EA34ED06BC2FD82A3F2E82245FED" xlink:to="loc_us-gaap_FinancialInstrumentAxis_886B514F6455D034C86C3F2E8225D78D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9C924A118C03A76CA7313F2E82253CEB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_886B514F6455D034C86C3F2E8225D78D" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9C924A118C03A76CA7313F2E82253CEB_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9C924A118C03A76CA7313F2E82253CEB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_886B514F6455D034C86C3F2E8225D78D" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9C924A118C03A76CA7313F2E82253CEB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MoneyMarketFundsMember" xlink:label="loc_us-gaap_MoneyMarketFundsMember_4AF9271A8C52482C1F383F2E8225030D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9C924A118C03A76CA7313F2E82253CEB" xlink:to="loc_us-gaap_MoneyMarketFundsMember_4AF9271A8C52482C1F383F2E8225030D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetBackedSecuritiesMember" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_BADA2872674B166402653F2E8226266F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9C924A118C03A76CA7313F2E82253CEB" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_BADA2872674B166402653F2E8226266F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommercialPaperMember" xlink:label="loc_us-gaap_CommercialPaperMember_04C6EE97ADA854B6ECC03F2E82260DC8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9C924A118C03A76CA7313F2E82253CEB" xlink:to="loc_us-gaap_CommercialPaperMember_04C6EE97ADA854B6ECC03F2E82260DC8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CorporateBondSecuritiesMember" xlink:label="loc_us-gaap_CorporateBondSecuritiesMember_0DA29BBD3C90596D06AC3F2E82265F14" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9C924A118C03A76CA7313F2E82253CEB" xlink:to="loc_us-gaap_CorporateBondSecuritiesMember_0DA29BBD3C90596D06AC3F2E82265F14" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_69D99A1988BFC74758033F2E8226AFB5" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9C924A118C03A76CA7313F2E82253CEB" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_69D99A1988BFC74758033F2E8226AFB5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_66A849055AE996C5FDA33F2E8226E77E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_8045EA34ED06BC2FD82A3F2E82245FED" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_66A849055AE996C5FDA33F2E8226E77E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_83FAC6F9452C742681573F2E82263054_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_66A849055AE996C5FDA33F2E8226E77E" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_83FAC6F9452C742681573F2E82263054_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_83FAC6F9452C742681573F2E82263054" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_66A849055AE996C5FDA33F2E8226E77E" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_83FAC6F9452C742681573F2E82263054" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsMember" xlink:label="loc_us-gaap_CashAndCashEquivalentsMember_283FA99D8CB1687E21883F2E8227B83D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_83FAC6F9452C742681573F2E82263054" xlink:to="loc_us-gaap_CashAndCashEquivalentsMember_283FA99D8CB1687E21883F2E8227B83D" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_AvailableForSaleSecuritiesLineItemMember" xlink:label="loc_qlys_AvailableForSaleSecuritiesLineItemMember_F0DA4F78E0F3EF11B8D83F2E8227F9D7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_83FAC6F9452C742681573F2E82263054" xlink:to="loc_qlys_AvailableForSaleSecuritiesLineItemMember_F0DA4F78E0F3EF11B8D83F2E8227F9D7" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_CurrentAssetsMember" xlink:label="loc_qlys_CurrentAssetsMember_443EB4AD8DFC212914783F2E8227221E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_83FAC6F9452C742681573F2E82263054" xlink:to="loc_qlys_CurrentAssetsMember_443EB4AD8DFC212914783F2E8227221E" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_NoncurrentAssetsMember" xlink:label="loc_qlys_NoncurrentAssetsMember_BE3709E633465E1A6A8A3F2E822747D1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_83FAC6F9452C742681573F2E82263054" xlink:to="loc_qlys_NoncurrentAssetsMember_BE3709E633465E1A6A8A3F2E822747D1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract" xlink:label="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_397FF8E54E3E496C04543F2E8228D5D0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_8A2C13CF05F580B7328C3F2E8227C967" xlink:to="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_397FF8E54E3E496C04543F2E8228D5D0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_C3B0EE471F6BE581F4B03F2E8228F4EF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_397FF8E54E3E496C04543F2E8228D5D0" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_C3B0EE471F6BE581F4B03F2E8228F4EF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentsFairValueDisclosure" xlink:label="loc_us-gaap_InvestmentsFairValueDisclosure_1AA2CC6BAA4348D3FE533F2E82283C79" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_397FF8E54E3E496C04543F2E8228D5D0" xlink:to="loc_us-gaap_InvestmentsFairValueDisclosure_1AA2CC6BAA4348D3FE533F2E82283C79" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_AA328411E032552ABB373F2E82280F71" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_397FF8E54E3E496C04543F2E8228D5D0" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_AA328411E032552ABB373F2E82280F71" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_DDABAD5194BB26C43B4B3F2E8228888A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_397FF8E54E3E496C04543F2E8228D5D0" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_DDABAD5194BB26C43B4B3F2E8228888A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesCurrent" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesCurrent_F8530D650F5EF0F9DF7F3F2E82297698" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_397FF8E54E3E496C04543F2E8228D5D0" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesCurrent_F8530D650F5EF0F9DF7F3F2E82297698" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_B1CF8AA9A2EF605FE8423F2E8229BAE4" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_397FF8E54E3E496C04543F2E8228D5D0" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_B1CF8AA9A2EF605FE8423F2E8229BAE4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesAmortizedCost_088EA4E27B5D0A2DBBED3F2E8229158A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_8A2C13CF05F580B7328C3F2E8227C967" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesAmortizedCost_088EA4E27B5D0A2DBBED3F2E8229158A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_0D8E93FDF733844E8F323F2E822935C7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_8A2C13CF05F580B7328C3F2E8227C967" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_0D8E93FDF733844E8F323F2E822935C7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_14FDF84B0643DB117FB53F2E82290A2B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_8A2C13CF05F580B7328C3F2E8227C967" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_14FDF84B0643DB117FB53F2E82290A2B" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.qualys.com/role/FairValueOfFinancialInstrumentsChangesInOtherComprehensiveIncomeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_565BB62CC041C186E7553F2E821C1AD4" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossTable" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_85F35E915E80ABEB61BB3F2E821BCD62" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_565BB62CC041C186E7553F2E821C1AD4" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_85F35E915E80ABEB61BB3F2E821BCD62" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_8743AAE65A4B4E9EA6213F2E821CF8AB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_85F35E915E80ABEB61BB3F2E821BCD62" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_8743AAE65A4B4E9EA6213F2E821CF8AB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_2A9200358BF36875D9503F2E821C065A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_8743AAE65A4B4E9EA6213F2E821CF8AB" xlink:to="loc_us-gaap_EquityComponentDomain_2A9200358BF36875D9503F2E821C065A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_2A9200358BF36875D9503F2E821C065A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_8743AAE65A4B4E9EA6213F2E821CF8AB" xlink:to="loc_us-gaap_EquityComponentDomain_2A9200358BF36875D9503F2E821C065A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember" xlink:label="loc_us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember_8D3ABF81477587FDF1363F2E821C998B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_2A9200358BF36875D9503F2E821C065A" xlink:to="loc_us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember_8D3ABF81477587FDF1363F2E821C998B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AOCIAttributableToParentNetOfTaxRollForward" xlink:label="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_313C94B749D012C7B06C3F2E821D2CD0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_565BB62CC041C186E7553F2E821C1AD4" xlink:to="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_313C94B749D012C7B06C3F2E821D2CD0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_536B8EF758A7A1236A193F2E821DB98D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_313C94B749D012C7B06C3F2E821D2CD0" xlink:to="loc_us-gaap_StockholdersEquity_536B8EF758A7A1236A193F2E821DB98D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_149CF399EFE7172AEC483F2E821DF809" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_313C94B749D012C7B06C3F2E821D2CD0" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_149CF399EFE7172AEC483F2E821DF809" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax_05D8CA273293159C0B643F2E821D18E5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_313C94B749D012C7B06C3F2E821D2CD0" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax_05D8CA273293159C0B643F2E821D18E5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_41C23BD7797715E61F683F2E821D32B5" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_313C94B749D012C7B06C3F2E821D2CD0" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_41C23BD7797715E61F683F2E821D32B5" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.qualys.com/role/FairValueOfFinancialInstrumentsContractualMaturityDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_E76A44C7520D11F7056FDD0639BBA9B9" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleTable" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_F695D2D9EE75A409C747DD0639B3603E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_E76A44C7520D11F7056FDD0639BBA9B9" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_F695D2D9EE75A409C747DD0639B3603E" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_FFA6BB9ACC7D60802C2ADCF90AE659F0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_F695D2D9EE75A409C747DD0639B3603E" xlink:to="loc_us-gaap_FinancialInstrumentAxis_FFA6BB9ACC7D60802C2ADCF90AE659F0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_A23B2BAE7FFBA4FE3FB0DCF90AE6ED6C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_FFA6BB9ACC7D60802C2ADCF90AE659F0" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_A23B2BAE7FFBA4FE3FB0DCF90AE6ED6C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_A23B2BAE7FFBA4FE3FB0DCF90AE6ED6C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_FFA6BB9ACC7D60802C2ADCF90AE659F0" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_A23B2BAE7FFBA4FE3FB0DCF90AE6ED6C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommercialPaperMember" xlink:label="loc_us-gaap_CommercialPaperMember_DB8762320549766B1995DCF90AE63005" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_A23B2BAE7FFBA4FE3FB0DCF90AE6ED6C" xlink:to="loc_us-gaap_CommercialPaperMember_DB8762320549766B1995DCF90AE63005" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_2F8BA4AE67A08C40FBFEDCF90AE6C232" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_A23B2BAE7FFBA4FE3FB0DCF90AE6ED6C" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_2F8BA4AE67A08C40FBFEDCF90AE6C232" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CorporateBondSecuritiesMember" xlink:label="loc_us-gaap_CorporateBondSecuritiesMember_466659124AF2DC0EE9D6DCF90AE6E04F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_A23B2BAE7FFBA4FE3FB0DCF90AE6ED6C" xlink:to="loc_us-gaap_CorporateBondSecuritiesMember_466659124AF2DC0EE9D6DCF90AE6E04F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetBackedSecuritiesMember" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_828310A46636D64820F2DCF90AE691D8" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_A23B2BAE7FFBA4FE3FB0DCF90AE6ED6C" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_828310A46636D64820F2DCF90AE691D8" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_AvailableForSaleSecuritiesDebtAndEquityMaturitiesNextTwelveMonthsFairValue" xlink:label="loc_qlys_AvailableForSaleSecuritiesDebtAndEquityMaturitiesNextTwelveMonthsFairValue_9575742895AA5A890486DD08D0358F85" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_E76A44C7520D11F7056FDD0639BBA9B9" xlink:to="loc_qlys_AvailableForSaleSecuritiesDebtAndEquityMaturitiesNextTwelveMonthsFairValue_9575742895AA5A890486DD08D0358F85" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_AvailableForSaleSecuritiesDebtAndEquityMaturitiesYearOneThroughTwoFairValue" xlink:label="loc_qlys_AvailableForSaleSecuritiesDebtAndEquityMaturitiesYearOneThroughTwoFairValue_36A71A9A854BD8078689DD08D0C1DF0F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_E76A44C7520D11F7056FDD0639BBA9B9" xlink:to="loc_qlys_AvailableForSaleSecuritiesDebtAndEquityMaturitiesYearOneThroughTwoFairValue_36A71A9A854BD8078689DD08D0C1DF0F" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_AvailableForSaleSecuritiesDebtAndEquityMaturitiesAfterYearTwoFairValue" xlink:label="loc_qlys_AvailableForSaleSecuritiesDebtAndEquityMaturitiesAfterYearTwoFairValue_A275EA154417817AC833DD08D0D1F5FD" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_E76A44C7520D11F7056FDD0639BBA9B9" xlink:to="loc_qlys_AvailableForSaleSecuritiesDebtAndEquityMaturitiesAfterYearTwoFairValue_A275EA154417817AC833DD08D0D1F5FD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_503D74451C9B0456B010DD08D0E004E4" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_E76A44C7520D11F7056FDD0639BBA9B9" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_503D74451C9B0456B010DD08D0E004E4" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.qualys.com/role/FairValueOfFinancialInstrumentsDerivativesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativesFairValueLineItems" xlink:label="loc_us-gaap_DerivativesFairValueLineItems_F84BA889309E94967A7D2022D892BCDE" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable" xlink:label="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_1B3F16A897A356FCA7D62022D88E0044" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_F84BA889309E94967A7D2022D892BCDE" xlink:to="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_1B3F16A897A356FCA7D62022D88E0044" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_C392BB56174811FE111C2076716A7AF9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_1B3F16A897A356FCA7D62022D88E0044" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_C392BB56174811FE111C2076716A7AF9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingRelationshipDomain" xlink:label="loc_us-gaap_HedgingRelationshipDomain_BEAC7D09512CD8C8021520767179AB83_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_C392BB56174811FE111C2076716A7AF9" xlink:to="loc_us-gaap_HedgingRelationshipDomain_BEAC7D09512CD8C8021520767179AB83_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingRelationshipDomain" xlink:label="loc_us-gaap_HedgingRelationshipDomain_BEAC7D09512CD8C8021520767179AB83" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_C392BB56174811FE111C2076716A7AF9" xlink:to="loc_us-gaap_HedgingRelationshipDomain_BEAC7D09512CD8C8021520767179AB83" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashFlowHedgingMember" xlink:label="loc_us-gaap_CashFlowHedgingMember_9236EAFE86694DAF34E320773A395547" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_BEAC7D09512CD8C8021520767179AB83" xlink:to="loc_us-gaap_CashFlowHedgingMember_9236EAFE86694DAF34E320773A395547" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingDesignationAxis" xlink:label="loc_us-gaap_HedgingDesignationAxis_7BDC56524AF7D978481E2022D88E301E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_1B3F16A897A356FCA7D62022D88E0044" xlink:to="loc_us-gaap_HedgingDesignationAxis_7BDC56524AF7D978481E2022D88E301E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_363459BCA6470C8F3DF920789584E375_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_7BDC56524AF7D978481E2022D88E301E" xlink:to="loc_us-gaap_HedgingDesignationDomain_363459BCA6470C8F3DF920789584E375_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_363459BCA6470C8F3DF920789584E375" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_7BDC56524AF7D978481E2022D88E301E" xlink:to="loc_us-gaap_HedgingDesignationDomain_363459BCA6470C8F3DF920789584E375" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NondesignatedMember" xlink:label="loc_us-gaap_NondesignatedMember_F0257E135B1FEF9E072B2022D88E6B86" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_363459BCA6470C8F3DF920789584E375" xlink:to="loc_us-gaap_NondesignatedMember_F0257E135B1FEF9E072B2022D88E6B86" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_C095E65F25D4AA382A3D2076F34861A0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_363459BCA6470C8F3DF920789584E375" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_C095E65F25D4AA382A3D2076F34861A0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_8D4F689B9FBBA70ED9282022D8927F7D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_1B3F16A897A356FCA7D62022D88E0044" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_8D4F689B9FBBA70ED9282022D8927F7D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_D0BB35642020AD219ED82022D8928F5D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_8D4F689B9FBBA70ED9282022D8927F7D" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_D0BB35642020AD219ED82022D8928F5D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_D0BB35642020AD219ED82022D8928F5D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_8D4F689B9FBBA70ED9282022D8927F7D" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_D0BB35642020AD219ED82022D8928F5D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForwardContractsMember" xlink:label="loc_us-gaap_ForwardContractsMember_83D1DF604CC6BF9EC0452022D8924C8B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_D0BB35642020AD219ED82022D8928F5D" xlink:to="loc_us-gaap_ForwardContractsMember_83D1DF604CC6BF9EC0452022D8924C8B" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_ForeignCurrencyContractEuroMember" xlink:label="loc_qlys_ForeignCurrencyContractEuroMember_3215B36383C89B9002C020752803F92F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_D0BB35642020AD219ED82022D8928F5D" xlink:to="loc_qlys_ForeignCurrencyContractEuroMember_3215B36383C89B9002C020752803F92F" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_ForeignCurrencyContractPoundMember" xlink:label="loc_qlys_ForeignCurrencyContractPoundMember_1A19B14E83B7C3B5B1B1207786793D26" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_D0BB35642020AD219ED82022D8928F5D" xlink:to="loc_qlys_ForeignCurrencyContractPoundMember_1A19B14E83B7C3B5B1B1207786793D26" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForeignExchangeContractMember" xlink:label="loc_us-gaap_ForeignExchangeContractMember_2A1976427A3E45AE5CD42022D892F336" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_D0BB35642020AD219ED82022D8928F5D" xlink:to="loc_us-gaap_ForeignExchangeContractMember_2A1976427A3E45AE5CD42022D892F336" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeNumberOfInstrumentsHeld" xlink:label="loc_us-gaap_DerivativeNumberOfInstrumentsHeld_3EF77DB95A1E9350A0AF2022D8922FE2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_F84BA889309E94967A7D2022D892BCDE" xlink:to="loc_us-gaap_DerivativeNumberOfInstrumentsHeld_3EF77DB95A1E9350A0AF2022D8922FE2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/invest/2013/invest-2013-01-31.xsd#invest_DerivativeNotionalAmount" xlink:label="loc_invest_DerivativeNotionalAmount_3CC51F8964A542C722842022D8928A35" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_F84BA889309E94967A7D2022D892BCDE" xlink:to="loc_invest_DerivativeNotionalAmount_3CC51F8964A542C722842022D8928A35" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax_3564398F06CD5DE49FA42022D89272CD" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_F84BA889309E94967A7D2022D892BCDE" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax_3564398F06CD5DE49FA42022D89272CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForeignCurrencyContractAssetFairValueDisclosure" xlink:label="loc_us-gaap_ForeignCurrencyContractAssetFairValueDisclosure_A205F3A7399378D01E2E2022D892AA96" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_F84BA889309E94967A7D2022D892BCDE" xlink:to="loc_us-gaap_ForeignCurrencyContractAssetFairValueDisclosure_A205F3A7399378D01E2E2022D892AA96" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.qualys.com/role/FairValueOfFinancialInstrumentsFairValueHierarchyDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_44E86ADAB7A49B60E1991FBD8DFBF984" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_F3906CB96AFFE51A44D81FBD8DF10490" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_44E86ADAB7A49B60E1991FBD8DFBF984" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_F3906CB96AFFE51A44D81FBD8DF10490" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByMeasurementBasisAxis" xlink:label="loc_us-gaap_FairValueByMeasurementBasisAxis_2D0108068B5FE4CE629A1FBD8DF17337" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_F3906CB96AFFE51A44D81FBD8DF10490" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_2D0108068B5FE4CE629A1FBD8DF17337" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_A38E23D8D8932A52362E1FBD8DF23088_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_2D0108068B5FE4CE629A1FBD8DF17337" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_A38E23D8D8932A52362E1FBD8DF23088_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueDisclosureItemAmountsDomain" xlink:label="loc_us-gaap_FairValueDisclosureItemAmountsDomain_36E616DDEDD6CEAC44EF1FBD8DF11DB5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_2D0108068B5FE4CE629A1FBD8DF17337" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_36E616DDEDD6CEAC44EF1FBD8DF11DB5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_A38E23D8D8932A52362E1FBD8DF23088" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_36E616DDEDD6CEAC44EF1FBD8DF11DB5" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_A38E23D8D8932A52362E1FBD8DF23088" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EstimateOfFairValueFairValueDisclosureMember" xlink:label="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_D03D056F24CB15E218431FBD8DF292BC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_36E616DDEDD6CEAC44EF1FBD8DF11DB5" xlink:to="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_D03D056F24CB15E218431FBD8DF292BC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_3291D53EB13FEE04FE8B1FBD8DF25EE5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_F3906CB96AFFE51A44D81FBD8DF10490" xlink:to="loc_us-gaap_FinancialInstrumentAxis_3291D53EB13FEE04FE8B1FBD8DF25EE5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_04DA38EC4306A169D8E11FBD8DF22B04_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_3291D53EB13FEE04FE8B1FBD8DF25EE5" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_04DA38EC4306A169D8E11FBD8DF22B04_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_04DA38EC4306A169D8E11FBD8DF22B04" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_3291D53EB13FEE04FE8B1FBD8DF25EE5" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_04DA38EC4306A169D8E11FBD8DF22B04" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommercialPaperMember" xlink:label="loc_us-gaap_CommercialPaperMember_EB000E6689EF8D01A82D1FBD8DF314F9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_04DA38EC4306A169D8E11FBD8DF22B04" xlink:to="loc_us-gaap_CommercialPaperMember_EB000E6689EF8D01A82D1FBD8DF314F9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_054F8B6E0AE1B0BD28591FBD8DF8F0AC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_04DA38EC4306A169D8E11FBD8DF22B04" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_054F8B6E0AE1B0BD28591FBD8DF8F0AC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CorporateBondSecuritiesMember" xlink:label="loc_us-gaap_CorporateBondSecuritiesMember_959F06D4C38B262B47DD1FBD8DF85827" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_04DA38EC4306A169D8E11FBD8DF22B04" xlink:to="loc_us-gaap_CorporateBondSecuritiesMember_959F06D4C38B262B47DD1FBD8DF85827" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetBackedSecuritiesMember" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_B1FF80E667612BC76E7F1FBD8DF89DEF" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_04DA38EC4306A169D8E11FBD8DF22B04" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_B1FF80E667612BC76E7F1FBD8DF89DEF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_0309C3EF5A9CCEC246A41FBD8DF9FE6A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_F3906CB96AFFE51A44D81FBD8DF10490" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_0309C3EF5A9CCEC246A41FBD8DF9FE6A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_2BAA59B0F233DA308E181FBD8DF9166B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_0309C3EF5A9CCEC246A41FBD8DF9FE6A" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_2BAA59B0F233DA308E181FBD8DF9166B_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_2BAA59B0F233DA308E181FBD8DF9166B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_0309C3EF5A9CCEC246A41FBD8DF9FE6A" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_2BAA59B0F233DA308E181FBD8DF9166B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel1Member" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_CB1B8F78DCEB221980E31FBD8DF99A5A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_2BAA59B0F233DA308E181FBD8DF9166B" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_CB1B8F78DCEB221980E31FBD8DF99A5A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel2Member" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_2C6D65E6A9CC09A6F5FA1FBD8DFAF90C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_2BAA59B0F233DA308E181FBD8DF9166B" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_2C6D65E6A9CC09A6F5FA1FBD8DFAF90C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_09B9C91BC84DCF467E721FBD8DFA44B5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_2BAA59B0F233DA308E181FBD8DF9166B" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_09B9C91BC84DCF467E721FBD8DFA44B5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByMeasurementFrequencyAxis" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_AE41D8F1BAE69130B31F1FBD8DFAAF90" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_F3906CB96AFFE51A44D81FBD8DF10490" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_AE41D8F1BAE69130B31F1FBD8DFAAF90" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_2C4D7A533C6876FE10A31FBD8DFAFCC7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_AE41D8F1BAE69130B31F1FBD8DFAAF90" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_2C4D7A533C6876FE10A31FBD8DFAFCC7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_2C4D7A533C6876FE10A31FBD8DFAFCC7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_AE41D8F1BAE69130B31F1FBD8DFAAF90" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_2C4D7A533C6876FE10A31FBD8DFAFCC7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsRecurringMember" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_4F0BD05E04AE218EAA581FBD8DFAD8C4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_2C4D7A533C6876FE10A31FBD8DFAFCC7" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_4F0BD05E04AE218EAA581FBD8DFAD8C4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecurities_AC0B0E1D1D025ECAE8631FBF21502017" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_44E86ADAB7A49B60E1991FBD8DFBF984" xlink:to="loc_us-gaap_AvailableForSaleSecurities_AC0B0E1D1D025ECAE8631FBF21502017" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_A7EAAB259B0D591511BA1FBD8DFB3EF6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_44E86ADAB7A49B60E1991FBD8DFBF984" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_A7EAAB259B0D591511BA1FBD8DFB3EF6" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.qualys.com/role/FairValueOfFinancialInstrumentsGainsLossesRecognizedDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossLineItems" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_434BC5A6AAC6B6A5396C3F2E81FE6B46" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_FFB2B2C23A48732506653F2E81FD521C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_434BC5A6AAC6B6A5396C3F2E81FE6B46" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_FFB2B2C23A48732506653F2E81FD521C" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_1A5807A449798DFB6F8B3F2E81FD9B69" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_FFB2B2C23A48732506653F2E81FD521C" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_1A5807A449798DFB6F8B3F2E81FD9B69" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_9062D16F33188ADB13E73F2E81FDFDA1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_1A5807A449798DFB6F8B3F2E81FD9B69" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_9062D16F33188ADB13E73F2E81FDFDA1_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_9062D16F33188ADB13E73F2E81FDFDA1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_1A5807A449798DFB6F8B3F2E81FD9B69" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_9062D16F33188ADB13E73F2E81FDFDA1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForwardContractsMember" xlink:label="loc_us-gaap_ForwardContractsMember_9208BA28311A0ED40EB03F2E81FD4235" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_9062D16F33188ADB13E73F2E81FDFDA1" xlink:to="loc_us-gaap_ForwardContractsMember_9208BA28311A0ED40EB03F2E81FD4235" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossRecognizedInIncomeIneffectivePortionAndAmountExcludedFromEffectivenessTestingNet" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossRecognizedInIncomeIneffectivePortionAndAmountExcludedFromEffectivenessTestingNet_B9123F4B2A8D727155F23F2E81FE30FA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_434BC5A6AAC6B6A5396C3F2E81FE6B46" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossRecognizedInIncomeIneffectivePortionAndAmountExcludedFromEffectivenessTestingNet_B9123F4B2A8D727155F23F2E81FE30FA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForeignCurrencyTransactionGainLossBeforeTax" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_AB49994D95C266EC3A683F2E81FE6D95" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_434BC5A6AAC6B6A5396C3F2E81FE6B46" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_AB49994D95C266EC3A683F2E81FE6D95" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_ForeignCurrencyTransactionGainLossIncludingDerivativesBeforeTax" xlink:label="loc_qlys_ForeignCurrencyTransactionGainLossIncludingDerivativesBeforeTax_D130D6006BDB507BB6ED3F2E81FE3E94" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_434BC5A6AAC6B6A5396C3F2E81FE6B46" xlink:to="loc_qlys_ForeignCurrencyTransactionGainLossIncludingDerivativesBeforeTax_D130D6006BDB507BB6ED3F2E81FE3E94" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.qualys.com/role/FairValueOfFinancialInstrumentsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/GoodwillAndIntangibleAssetsNet" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/GoodwillAndIntangibleAssetsNetCarryingValueOfIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:href="qlys-20190630.xsd#qlys_ScheduleOfGoodwillAndIntangibleAssetsLineItems" xlink:label="loc_qlys_ScheduleOfGoodwillAndIntangibleAssetsLineItems_5945B5329BDE1AA4E2F91FA5FA47DAC0" xlink:type="locator" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_ScheduleOfGoodwillAndIntangibleAssetsTable" xlink:label="loc_qlys_ScheduleOfGoodwillAndIntangibleAssetsTable_B9701F754D3EC14AC6041FA5FA45AB80" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_qlys_ScheduleOfGoodwillAndIntangibleAssetsLineItems_5945B5329BDE1AA4E2F91FA5FA47DAC0" xlink:to="loc_qlys_ScheduleOfGoodwillAndIntangibleAssetsTable_B9701F754D3EC14AC6041FA5FA45AB80" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_60E5493CFEF17537BE861FA5FA45E0F0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_qlys_ScheduleOfGoodwillAndIntangibleAssetsTable_B9701F754D3EC14AC6041FA5FA45AB80" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_60E5493CFEF17537BE861FA5FA45E0F0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_FE521EE0D6B99425DB231FA5FA4651D3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_60E5493CFEF17537BE861FA5FA45E0F0" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_FE521EE0D6B99425DB231FA5FA4651D3_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_FE521EE0D6B99425DB231FA5FA4651D3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_60E5493CFEF17537BE861FA5FA45E0F0" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_FE521EE0D6B99425DB231FA5FA4651D3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DevelopedTechnologyRightsMember" xlink:label="loc_us-gaap_DevelopedTechnologyRightsMember_182369455BFFAF586A481FA5FA46A4C6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_FE521EE0D6B99425DB231FA5FA4651D3" xlink:to="loc_us-gaap_DevelopedTechnologyRightsMember_182369455BFFAF586A481FA5FA46A4C6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PatentsMember" xlink:label="loc_us-gaap_PatentsMember_E10BEC8AA64B9D497E1E1FA5FA466B47" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_FE521EE0D6B99425DB231FA5FA4651D3" xlink:to="loc_us-gaap_PatentsMember_E10BEC8AA64B9D497E1E1FA5FA466B47" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_60D6F63AAE7A8DD8155B1FA5FA47CCF9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_qlys_ScheduleOfGoodwillAndIntangibleAssetsLineItems_5945B5329BDE1AA4E2F91FA5FA47DAC0" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_60D6F63AAE7A8DD8155B1FA5FA47CCF9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsRemainingAmortizationPeriod1" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsRemainingAmortizationPeriod1_6983FA7A8A3C4000D7151FA5FA47AF6F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_qlys_ScheduleOfGoodwillAndIntangibleAssetsLineItems_5945B5329BDE1AA4E2F91FA5FA47DAC0" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsRemainingAmortizationPeriod1_6983FA7A8A3C4000D7151FA5FA47AF6F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_FAAB5F251ADE199657331FA5FA47B0ED" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_qlys_ScheduleOfGoodwillAndIntangibleAssetsLineItems_5945B5329BDE1AA4E2F91FA5FA47DAC0" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_FAAB5F251ADE199657331FA5FA47B0ED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_AD8D4BD1655AA30F40F41FA5FA480C9B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_qlys_ScheduleOfGoodwillAndIntangibleAssetsLineItems_5945B5329BDE1AA4E2F91FA5FA47DAC0" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_AD8D4BD1655AA30F40F41FA5FA480C9B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_4C8A0610907D6855F1581FA5FA48CFF5" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_qlys_ScheduleOfGoodwillAndIntangibleAssetsLineItems_5945B5329BDE1AA4E2F91FA5FA47DAC0" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_4C8A0610907D6855F1581FA5FA48CFF5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_5B195F53695E8AB398201FA5FA48D122" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_qlys_ScheduleOfGoodwillAndIntangibleAssetsLineItems_5945B5329BDE1AA4E2F91FA5FA47DAC0" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_5B195F53695E8AB398201FA5FA48D122" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_FA2CCBD774109D5CBA441FA5FA489A5D" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_qlys_ScheduleOfGoodwillAndIntangibleAssetsLineItems_5945B5329BDE1AA4E2F91FA5FA47DAC0" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_FA2CCBD774109D5CBA441FA5FA489A5D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AmortizationOfIntangibleAssets" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_C81A7E30D5939534231F1FA5FA48157C" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_qlys_ScheduleOfGoodwillAndIntangibleAssetsLineItems_5945B5329BDE1AA4E2F91FA5FA47DAC0" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_C81A7E30D5939534231F1FA5FA48157C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_DDD7F22C72FE0DED231A1FA5FA481C18" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_qlys_ScheduleOfGoodwillAndIntangibleAssetsLineItems_5945B5329BDE1AA4E2F91FA5FA47DAC0" xlink:to="loc_us-gaap_Goodwill_DDD7F22C72FE0DED231A1FA5FA481C18" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.qualys.com/role/GoodwillAndIntangibleAssetsNetFutureAmortizationDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/GoodwillAndIntangibleAssetsNetTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/IncomeTaxes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/IncomeTaxesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/LeasesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LesseeLeaseDescriptionLineItems" xlink:label="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LesseeLeaseDescriptionTable" xlink:label="loc_us-gaap_LesseeLeaseDescriptionTable_1F77C80910D458C01EFA2040D006F7BD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_LesseeLeaseDescriptionTable_1F77C80910D458C01EFA2040D006F7BD" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_499A05B46D813AFD7C522040F74CC07C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_1F77C80910D458C01EFA2040D006F7BD" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_499A05B46D813AFD7C522040F74CC07C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_924059FC89FA8D20B4762040F750CDB6_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_499A05B46D813AFD7C522040F74CC07C" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_924059FC89FA8D20B4762040F750CDB6_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_924059FC89FA8D20B4762040F750CDB6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_499A05B46D813AFD7C522040F74CC07C" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_924059FC89FA8D20B4762040F750CDB6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherNoncurrentLiabilitiesMember" xlink:label="loc_us-gaap_OtherNoncurrentLiabilitiesMember_E8A675A411E3F63F76E42043FC420FD8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_924059FC89FA8D20B4762040F750CDB6" xlink:to="loc_us-gaap_OtherNoncurrentLiabilitiesMember_E8A675A411E3F63F76E42043FC420FD8" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_CapitalLeasedAssetsInterestRate" xlink:label="loc_qlys_CapitalLeasedAssetsInterestRate_3D85F5E320D376439AF62033A8416D43" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_qlys_CapitalLeasedAssetsInterestRate_3D85F5E320D376439AF62033A8416D43" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_LeaseExpense" xlink:label="loc_qlys_LeaseExpense_B820DB35E20FB3F8CEFD2033A84105EC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_qlys_LeaseExpense_B820DB35E20FB3F8CEFD2033A84105EC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_7BA552D21BEB923A51412033A841BF0F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_7BA552D21BEB923A51412033A841BF0F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_605AF22204C467C084AA2033A8410432" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_605AF22204C467C084AA2033A8410432" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1" xlink:label="loc_us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1_DED0F6D5E725158BCCE12033A841F351" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1_DED0F6D5E725158BCCE12033A841F351" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinanceLeaseWeightedAverageRemainingLeaseTerm1" xlink:label="loc_us-gaap_FinanceLeaseWeightedAverageRemainingLeaseTerm1_89E7DB19F0AAFAAE756A2033A8417F3C" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_FinanceLeaseWeightedAverageRemainingLeaseTerm1_89E7DB19F0AAFAAE756A2033A8417F3C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent" xlink:label="loc_us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent_45DC805DAB1B56144ADB2033A8417D93" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent_45DC805DAB1B56144ADB2033A8417D93" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinanceLeaseWeightedAverageDiscountRatePercent" xlink:label="loc_us-gaap_FinanceLeaseWeightedAverageDiscountRatePercent_94A5C31CAA20CA47387B2033A841C0EF" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_FinanceLeaseWeightedAverageDiscountRatePercent_94A5C31CAA20CA47387B2033A841C0EF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinanceLeaseRightOfUseAsset" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAsset_B21A779F4847CA7942B62033A8413D00" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAsset_B21A779F4847CA7942B62033A8413D00" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_LeaseRightofUseAsset" xlink:label="loc_qlys_LeaseRightofUseAsset_177B1FC8EC7946E7CEE92033A841742A" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_qlys_LeaseRightofUseAsset_177B1FC8EC7946E7CEE92033A841742A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeaseLiabilityCurrent" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_745F983D349787162A3E2033A8418B0D" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_745F983D349787162A3E2033A8418B0D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinanceLeaseLiabilityCurrent" xlink:label="loc_us-gaap_FinanceLeaseLiabilityCurrent_DF26E600C3489219EF5F2033A8415F78" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_FinanceLeaseLiabilityCurrent_DF26E600C3489219EF5F2033A8415F78" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_4223949E130F378A19F32033A8419E8E" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_4223949E130F378A19F32033A8419E8E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinanceLeaseLiabilityNoncurrent" xlink:label="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_3230B4F5840FDF0434732033A8418FF0" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_3230B4F5840FDF0434732033A8418FF0" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_LeaseLiability" xlink:label="loc_qlys_LeaseLiability_E3569C796DD2A2C0E3222033A8410464" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_qlys_LeaseLiability_E3569C796DD2A2C0E3222033A8410464" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_F2EB26DE473D6F4DF2B42033A841CA96" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_F2EB26DE473D6F4DF2B42033A841CA96" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_B45FB1CE23DE76A8714D2033A841CD33" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_B45FB1CE23DE76A8714D2033A841CD33" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_45FB524F7015EA709BDA2033A841582B" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_45FB524F7015EA709BDA2033A841582B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_016FB1169E6CEC1BA87F2033A841C1A5" xlink:type="locator" />
    <link:definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_016FB1169E6CEC1BA87F2033A841C1A5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_8B3FDE26C5E657631E472033A8413D6E" xlink:type="locator" />
    <link:definitionArc order="20" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_8B3FDE26C5E657631E472033A8413D6E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_1C2060813470932C5F442033A8410DBF" xlink:type="locator" />
    <link:definitionArc order="21" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_1C2060813470932C5F442033A8410DBF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_F193899F93F6561412412033A8416AA5" xlink:type="locator" />
    <link:definitionArc order="22" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_F193899F93F6561412412033A8416AA5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_C3E5B45DAA956E83D08C2033A8493CC8" xlink:type="locator" />
    <link:definitionArc order="23" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_C3E5B45DAA956E83D08C2033A8493CC8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive_99B271121D00B30BB4D52033A849863E" xlink:type="locator" />
    <link:definitionArc order="24" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive_99B271121D00B30BB4D52033A849863E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_7F039D710C19D0029C172033A8494A7D" xlink:type="locator" />
    <link:definitionArc order="25" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_7F039D710C19D0029C172033A8494A7D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive_52DB082789AB2A0F30142033A849BBEF" xlink:type="locator" />
    <link:definitionArc order="26" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive_52DB082789AB2A0F30142033A849BBEF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_8C52401CD7C577A78B612033A84941BE" xlink:type="locator" />
    <link:definitionArc order="27" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_8C52401CD7C577A78B612033A84941BE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_29C6333CFA19FFF120332033A84996E1" xlink:type="locator" />
    <link:definitionArc order="28" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_29C6333CFA19FFF120332033A84996E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_97E5EC72FDF7777DD1702033A849F426" xlink:type="locator" />
    <link:definitionArc order="29" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_97E5EC72FDF7777DD1702033A849F426" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount" xlink:label="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_3282646046CA5E89BD8B2033A849DF13" xlink:type="locator" />
    <link:definitionArc order="30" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_3282646046CA5E89BD8B2033A849DF13" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeaseLiability" xlink:label="loc_us-gaap_OperatingLeaseLiability_584AF2073265467937242033A849C87A" xlink:type="locator" />
    <link:definitionArc order="31" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_OperatingLeaseLiability_584AF2073265467937242033A849C87A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinanceLeaseLiability" xlink:label="loc_us-gaap_FinanceLeaseLiability_32BBF615B1863CD0A2472033A8498C0D" xlink:type="locator" />
    <link:definitionArc order="32" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0D9A16B7FC6C8FB85D832040D00663B1" xlink:to="loc_us-gaap_FinanceLeaseLiability_32BBF615B1863CD0A2472033A8498C0D" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.qualys.com/role/LeasesNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/LeasesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/NetIncomePerShare" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/NetIncomePerShareDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_7C1714A7939AF1CC125BDC37CA24943C" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_87B7FEA3A4B7085CC34FDC37CA245389" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_7C1714A7939AF1CC125BDC37CA24943C" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_87B7FEA3A4B7085CC34FDC37CA245389" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_FA9E889F4195A07935F5DC37CA24F8BE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_87B7FEA3A4B7085CC34FDC37CA245389" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_FA9E889F4195A07935F5DC37CA24F8BE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_4D282E0DE0509D82FBB1DC37CA245FF9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_FA9E889F4195A07935F5DC37CA24F8BE" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_4D282E0DE0509D82FBB1DC37CA245FF9_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_4D282E0DE0509D82FBB1DC37CA245FF9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_FA9E889F4195A07935F5DC37CA24F8BE" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_4D282E0DE0509D82FBB1DC37CA245FF9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_06514BFDB8E0A78C1750DC37CA243A98" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_4D282E0DE0509D82FBB1DC37CA245FF9" xlink:to="loc_us-gaap_EmployeeStockOptionMember_06514BFDB8E0A78C1750DC37CA243A98" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_AC610D17738EA2D58889DC37CA2469D2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_4D282E0DE0509D82FBB1DC37CA245FF9" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_AC610D17738EA2D58889DC37CA2469D2" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_AntidilutiveSecuritiesAbstract" xlink:label="loc_qlys_AntidilutiveSecuritiesAbstract_08CDDC6CB66EB7FE9463DC37CA2408FB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_7C1714A7939AF1CC125BDC37CA24943C" xlink:to="loc_qlys_AntidilutiveSecuritiesAbstract_08CDDC6CB66EB7FE9463DC37CA2408FB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_24B6F311F073DA56C6F8DC37CA24F4EA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_qlys_AntidilutiveSecuritiesAbstract_08CDDC6CB66EB7FE9463DC37CA2408FB" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_24B6F311F073DA56C6F8DC37CA24F4EA" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.qualys.com/role/NetIncomePerShareTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/PropertyAndEquipmentNet" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/PropertyAndEquipmentNetDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_260A05DFCE1E48CCADCF3F2E81F1427D" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_71F99CA9F316468E6B263F2E81E9D06B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_260A05DFCE1E48CCADCF3F2E81F1427D" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_71F99CA9F316468E6B263F2E81E9D06B" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_7F9ADBF02A76EF9FB0CD3F2E81E91F44" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_71F99CA9F316468E6B263F2E81E9D06B" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_7F9ADBF02A76EF9FB0CD3F2E81E91F44" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DAC79B8A4F166A2F6C143F2E81E9EBC9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_7F9ADBF02A76EF9FB0CD3F2E81E91F44" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DAC79B8A4F166A2F6C143F2E81E9EBC9_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DAC79B8A4F166A2F6C143F2E81E9EBC9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_7F9ADBF02A76EF9FB0CD3F2E81E91F44" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DAC79B8A4F166A2F6C143F2E81E9EBC9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ComputerEquipmentMember" xlink:label="loc_us-gaap_ComputerEquipmentMember_FB5CF11304BB7EC905253F2E81EAABF6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DAC79B8A4F166A2F6C143F2E81E9EBC9" xlink:to="loc_us-gaap_ComputerEquipmentMember_FB5CF11304BB7EC905253F2E81EAABF6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ComputerSoftwareIntangibleAssetMember" xlink:label="loc_us-gaap_ComputerSoftwareIntangibleAssetMember_5D9BD8CD4BCAC4EBDA933F2E81EA9566" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DAC79B8A4F166A2F6C143F2E81E9EBC9" xlink:to="loc_us-gaap_ComputerSoftwareIntangibleAssetMember_5D9BD8CD4BCAC4EBDA933F2E81EA9566" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FurnitureAndFixturesMember" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_89594C299A5A29FDB25D3F2E81F03B09" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DAC79B8A4F166A2F6C143F2E81E9EBC9" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_89594C299A5A29FDB25D3F2E81F03B09" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetsHeldUnderCapitalLeasesMember" xlink:label="loc_us-gaap_AssetsHeldUnderCapitalLeasesMember_74422FC9D27ADE454F6E3F2E81F017F2" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DAC79B8A4F166A2F6C143F2E81E9EBC9" xlink:to="loc_us-gaap_AssetsHeldUnderCapitalLeasesMember_74422FC9D27ADE454F6E3F2E81F017F2" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_ScannerAppliancesMember" xlink:label="loc_qlys_ScannerAppliancesMember_770683C6D043E009419D3F2E81F052DA" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DAC79B8A4F166A2F6C143F2E81E9EBC9" xlink:to="loc_qlys_ScannerAppliancesMember_770683C6D043E009419D3F2E81F052DA" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_ScannerAppliancesAndOtherComputerEquipmentSubjectToSubscriptionMember" xlink:label="loc_qlys_ScannerAppliancesAndOtherComputerEquipmentSubjectToSubscriptionMember_AE9A8E49476BBCDD06D03F2E81F0605F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_qlys_ScannerAppliancesMember_770683C6D043E009419D3F2E81F052DA" xlink:to="loc_qlys_ScannerAppliancesAndOtherComputerEquipmentSubjectToSubscriptionMember_AE9A8E49476BBCDD06D03F2E81F0605F" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_ScannerAppliancesAndOtherComputerEquipmentNotPlacedInServiceMember" xlink:label="loc_qlys_ScannerAppliancesAndOtherComputerEquipmentNotPlacedInServiceMember_085A22BD5873D71D73BB3F2E81F14DD2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_qlys_ScannerAppliancesMember_770683C6D043E009419D3F2E81F052DA" xlink:to="loc_qlys_ScannerAppliancesAndOtherComputerEquipmentNotPlacedInServiceMember_085A22BD5873D71D73BB3F2E81F14DD2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LeaseholdImprovementsMember" xlink:label="loc_us-gaap_LeaseholdImprovementsMember_1068A61BE904FF082CBA3F2E81F1E297" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DAC79B8A4F166A2F6C143F2E81E9EBC9" xlink:to="loc_us-gaap_LeaseholdImprovementsMember_1068A61BE904FF082CBA3F2E81F1E297" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_8A71BA7BCC6F8C06621D3F2E81F14CDD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_260A05DFCE1E48CCADCF3F2E81F1427D" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_8A71BA7BCC6F8C06621D3F2E81F14CDD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinanceLeaseRightOfUseAsset" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAsset_A8F4717B4FE9F2CCCF813F2E81F14050" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_260A05DFCE1E48CCADCF3F2E81F1427D" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAsset_A8F4717B4FE9F2CCCF813F2E81F14050" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_3E2C440C62C4DBEAA20B3F2E81F178EA" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_260A05DFCE1E48CCADCF3F2E81F1427D" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_3E2C440C62C4DBEAA20B3F2E81F178EA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_FE513D91BADB893459973F2E81F20A4D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_260A05DFCE1E48CCADCF3F2E81F1427D" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_FE513D91BADB893459973F2E81F20A4D" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_DepreciationDepletionAndAmortizationExcludingIntangibleAssetAmortization" xlink:label="loc_qlys_DepreciationDepletionAndAmortizationExcludingIntangibleAssetAmortization_DF57BCF32C65184637203F2E81F209DF" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_260A05DFCE1E48CCADCF3F2E81F1427D" xlink:to="loc_qlys_DepreciationDepletionAndAmortizationExcludingIntangibleAssetAmortization_DF57BCF32C65184637203F2E81F209DF" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_AccumulatedDepreciationCapitalLeases" xlink:label="loc_qlys_AccumulatedDepreciationCapitalLeases_35F09385AB3222FFE7CC3F2E81F2BD1E" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_260A05DFCE1E48CCADCF3F2E81F1427D" xlink:to="loc_qlys_AccumulatedDepreciationCapitalLeases_35F09385AB3222FFE7CC3F2E81F2BD1E" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.qualys.com/role/PropertyAndEquipmentNetTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/RevenueFromContractsWithCustomers" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/RevenueFromContractsWithCustomersAccountsReceivableNetDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/RevenueFromContractsWithCustomersCommissionAssetBalancesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/RevenueFromContractsWithCustomersNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems" xlink:label="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_A04782831EDB015298AD0728D8458423" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionTable" xlink:label="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionTable_686F3B511BAD30F056CB0728D844F523" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_A04782831EDB015298AD0728D8458423" xlink:to="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionTable_686F3B511BAD30F056CB0728D844F523" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srt_ProductOrServiceAxis_211F713F21CED6EB894E0728D844DBA9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionTable_686F3B511BAD30F056CB0728D844F523" xlink:to="loc_srt_ProductOrServiceAxis_211F713F21CED6EB894E0728D844DBA9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_E34E8E65BFEEBBD5889E0728D845E2CD_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_211F713F21CED6EB894E0728D844DBA9" xlink:to="loc_srt_ProductsAndServicesDomain_E34E8E65BFEEBBD5889E0728D845E2CD_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_E34E8E65BFEEBBD5889E0728D845E2CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_211F713F21CED6EB894E0728D844DBA9" xlink:to="loc_srt_ProductsAndServicesDomain_E34E8E65BFEEBBD5889E0728D845E2CD" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_SubscriptionRevenueMember" xlink:label="loc_qlys_SubscriptionRevenueMember_E7710126AA3A9F8424AC0728D845C0E4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_E34E8E65BFEEBBD5889E0728D845E2CD" xlink:to="loc_qlys_SubscriptionRevenueMember_E7710126AA3A9F8424AC0728D845C0E4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CapitalizedContractCostAmortizationPeriod" xlink:label="loc_us-gaap_CapitalizedContractCostAmortizationPeriod_4B6D9DB02378D7BFFA6A07B10A3E5D60" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_A04782831EDB015298AD0728D8458423" xlink:to="loc_us-gaap_CapitalizedContractCostAmortizationPeriod_4B6D9DB02378D7BFFA6A07B10A3E5D60" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_9E4E711E033D42D7190B0728D845674D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_A04782831EDB015298AD0728D8458423" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_9E4E711E033D42D7190B0728D845674D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AmortizationOfDeferredSalesCommissions" xlink:label="loc_us-gaap_AmortizationOfDeferredSalesCommissions_2F029F3A820809F678D00728D846995A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_A04782831EDB015298AD0728D8458423" xlink:to="loc_us-gaap_AmortizationOfDeferredSalesCommissions_2F029F3A820809F678D00728D846995A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_C7A541FB4A02844957020728D8469CAD" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_A04782831EDB015298AD0728D8458423" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_C7A541FB4A02844957020728D8469CAD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnbilledReceivablesNotBillableAtBalanceSheetDate" xlink:label="loc_us-gaap_UnbilledReceivablesNotBillableAtBalanceSheetDate_427E76B79F9DF2F7F5370728D8469766" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_A04782831EDB015298AD0728D8458423" xlink:to="loc_us-gaap_UnbilledReceivablesNotBillableAtBalanceSheetDate_427E76B79F9DF2F7F5370728D8469766" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.qualys.com/role/RevenueFromContractsWithCustomersRevenueBySalesChannelDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisaggregationOfRevenueLineItems" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_FBFF6B8E0587E5230B5E0728D8274BBD" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisaggregationOfRevenueTable" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_7EDB92FECB7D5DF99A8A0728D826F388" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_FBFF6B8E0587E5230B5E0728D8274BBD" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_7EDB92FECB7D5DF99A8A0728D826F388" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractWithCustomerSalesChannelAxis" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelAxis_B87D76EF60A844B019480728D82636B5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_7EDB92FECB7D5DF99A8A0728D826F388" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelAxis_B87D76EF60A844B019480728D82636B5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractWithCustomerSalesChannelDomain" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelDomain_5AF3AC1E6960CD8490080728D826EA62_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelAxis_B87D76EF60A844B019480728D82636B5" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelDomain_5AF3AC1E6960CD8490080728D826EA62_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractWithCustomerSalesChannelDomain" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelDomain_5AF3AC1E6960CD8490080728D826EA62" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelAxis_B87D76EF60A844B019480728D82636B5" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelDomain_5AF3AC1E6960CD8490080728D826EA62" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SalesChannelDirectlyToConsumerMember" xlink:label="loc_us-gaap_SalesChannelDirectlyToConsumerMember_3EE654211C92700F127A0728D8277205" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_5AF3AC1E6960CD8490080728D826EA62" xlink:to="loc_us-gaap_SalesChannelDirectlyToConsumerMember_3EE654211C92700F127A0728D8277205" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SalesChannelThroughIntermediaryMember" xlink:label="loc_us-gaap_SalesChannelThroughIntermediaryMember_100B326037C2FA8D172E0728D8274FD4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_5AF3AC1E6960CD8490080728D826EA62" xlink:to="loc_us-gaap_SalesChannelThroughIntermediaryMember_100B326037C2FA8D172E0728D8274FD4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_51F19047B908BF79EC5D0728D827DF5C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_FBFF6B8E0587E5230B5E0728D8274BBD" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_51F19047B908BF79EC5D0728D827DF5C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.qualys.com/role/RevenueFromContractsWithCustomersTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/RevenueFromContractsWithCustomersUnbilledContractsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/SegmentInformationAndInformationAboutGeographicArea" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/SegmentInformationAndInformationAboutGeographicAreaPropertyAndEquipmentNetDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_70AC7EA60A7D0C6DEF41DC37C9A704CD" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_6E5CD923ED4363486DB1DC37C9A7BEF0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_70AC7EA60A7D0C6DEF41DC37C9A704CD" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_6E5CD923ED4363486DB1DC37C9A7BEF0" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srt_StatementGeographicalAxis_0C08DABD2CCBA1EED120DC37C9A76683" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_6E5CD923ED4363486DB1DC37C9A7BEF0" xlink:to="loc_srt_StatementGeographicalAxis_0C08DABD2CCBA1EED120DC37C9A76683" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_2FF2FECC1C641E026CB5DC37C9A7441F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_0C08DABD2CCBA1EED120DC37C9A76683" xlink:to="loc_srt_SegmentGeographicalDomain_2FF2FECC1C641E026CB5DC37C9A7441F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_2FF2FECC1C641E026CB5DC37C9A7441F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_0C08DABD2CCBA1EED120DC37C9A76683" xlink:to="loc_srt_SegmentGeographicalDomain_2FF2FECC1C641E026CB5DC37C9A7441F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_US" xlink:label="loc_country_US_CB039D89A6A39BC4B3FADC37C9A77BD2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_2FF2FECC1C641E026CB5DC37C9A7441F" xlink:to="loc_country_US_CB039D89A6A39BC4B3FADC37C9A77BD2" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_OtherGeographicAreasMember" xlink:label="loc_qlys_OtherGeographicAreasMember_E05A95EE0CF9BD229370DC37C9A76812" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_2FF2FECC1C641E026CB5DC37C9A7441F" xlink:to="loc_qlys_OtherGeographicAreasMember_E05A95EE0CF9BD229370DC37C9A76812" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NumberOfOperatingSegments" xlink:label="loc_us-gaap_NumberOfOperatingSegments_EB0A33148738870AA4AADC37C9A7B2C3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_70AC7EA60A7D0C6DEF41DC37C9A704CD" xlink:to="loc_us-gaap_NumberOfOperatingSegments_EB0A33148738870AA4AADC37C9A7B2C3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_9150687EF4F7722C21BCDC37C9A76AD9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_70AC7EA60A7D0C6DEF41DC37C9A704CD" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_9150687EF4F7722C21BCDC37C9A76AD9" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.qualys.com/role/SegmentInformationAndInformationAboutGeographicAreaRevenueByGeographicAreaDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisaggregationOfRevenueLineItems" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_0567AD51F064F94484F9DC3D0FC9587D" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisaggregationOfRevenueTable" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_0FE5C0395050705E4E5CDC3D0FC9B96F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_0567AD51F064F94484F9DC3D0FC9587D" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_0FE5C0395050705E4E5CDC3D0FC9B96F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srt_StatementGeographicalAxis_276849344A13D034A4CBDC3D0FC9ED5B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_0FE5C0395050705E4E5CDC3D0FC9B96F" xlink:to="loc_srt_StatementGeographicalAxis_276849344A13D034A4CBDC3D0FC9ED5B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_77391BA3AF5B6FC14DD7DC3D0FC9DE05_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_276849344A13D034A4CBDC3D0FC9ED5B" xlink:to="loc_srt_SegmentGeographicalDomain_77391BA3AF5B6FC14DD7DC3D0FC9DE05_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_77391BA3AF5B6FC14DD7DC3D0FC9DE05" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_276849344A13D034A4CBDC3D0FC9ED5B" xlink:to="loc_srt_SegmentGeographicalDomain_77391BA3AF5B6FC14DD7DC3D0FC9DE05" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_US" xlink:label="loc_country_US_029D4795355270FEECB2DC3D0FC983D4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_77391BA3AF5B6FC14DD7DC3D0FC9DE05" xlink:to="loc_country_US_029D4795355270FEECB2DC3D0FC983D4" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_OtherGeographicAreasMember" xlink:label="loc_qlys_OtherGeographicAreasMember_06DA5943F98D574949A9DC3D0FC9168E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_77391BA3AF5B6FC14DD7DC3D0FC9DE05" xlink:to="loc_qlys_OtherGeographicAreasMember_06DA5943F98D574949A9DC3D0FC9168E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_94D4369A191501BC582DDC3D0FC9CD6C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_0567AD51F064F94484F9DC3D0FC9587D" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_94D4369A191501BC582DDC3D0FC9CD6C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.qualys.com/role/SegmentInformationAndInformationAboutGeographicAreaTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/StockBasedCompensation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/StockBasedCompensationExpenseDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_E675CC664D8A2B0FC32FDC37C949AD64" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable" xlink:label="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_48C2E804436E2A2C83DEDC37C949B2CE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_E675CC664D8A2B0FC32FDC37C949AD64" xlink:to="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_48C2E804436E2A2C83DEDC37C949B2CE" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_7D4F863680F10CF5CFB4DC37C949CF48" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_48C2E804436E2A2C83DEDC37C949B2CE" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_7D4F863680F10CF5CFB4DC37C949CF48" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_9849FE3D197A4874B7C3DC37C9499853_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_7D4F863680F10CF5CFB4DC37C949CF48" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_9849FE3D197A4874B7C3DC37C9499853_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_9849FE3D197A4874B7C3DC37C9499853" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_7D4F863680F10CF5CFB4DC37C949CF48" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_9849FE3D197A4874B7C3DC37C9499853" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CostOfSalesMember" xlink:label="loc_us-gaap_CostOfSalesMember_473E4BC52F81D353CA41DC37C949ABC1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_9849FE3D197A4874B7C3DC37C9499853" xlink:to="loc_us-gaap_CostOfSalesMember_473E4BC52F81D353CA41DC37C949ABC1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ResearchAndDevelopmentExpenseMember" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseMember_A87B9D1B48E54EA4A84DDC37C9499807" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_9849FE3D197A4874B7C3DC37C9499853" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseMember_A87B9D1B48E54EA4A84DDC37C9499807" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SellingAndMarketingExpenseMember" xlink:label="loc_us-gaap_SellingAndMarketingExpenseMember_F5836EED4F62FB10B025DC37C9496E8F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_9849FE3D197A4874B7C3DC37C9499853" xlink:to="loc_us-gaap_SellingAndMarketingExpenseMember_F5836EED4F62FB10B025DC37C9496E8F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GeneralAndAdministrativeExpenseMember" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpenseMember_A33C21BD14EBF7B80262DC37C94948B1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_9849FE3D197A4874B7C3DC37C9499853" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpenseMember_A33C21BD14EBF7B80262DC37C94948B1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_857B23ED1B12F78D395DDC37C949C0C5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_48C2E804436E2A2C83DEDC37C949B2CE" xlink:to="loc_us-gaap_AwardTypeAxis_857B23ED1B12F78D395DDC37C949C0C5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_148840198E7FB1008B5ADC37C949AE82_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_857B23ED1B12F78D395DDC37C949C0C5" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_148840198E7FB1008B5ADC37C949AE82_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_148840198E7FB1008B5ADC37C949AE82" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_857B23ED1B12F78D395DDC37C949C0C5" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_148840198E7FB1008B5ADC37C949AE82" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_A622A7711AB62B6D3409DC37C949132F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_148840198E7FB1008B5ADC37C949AE82" xlink:to="loc_us-gaap_EmployeeStockOptionMember_A622A7711AB62B6D3409DC37C949132F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_65393D5ADD1A5218F245DC37C949829A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_148840198E7FB1008B5ADC37C949AE82" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_65393D5ADD1A5218F245DC37C949829A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_6C6557460E6C433F6F74DC37C94971E2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_E675CC664D8A2B0FC32FDC37C949AD64" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_6C6557460E6C433F6F74DC37C94971E2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_D809365181037546C629DC37C949D320" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_E675CC664D8A2B0FC32FDC37C949AD64" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_D809365181037546C629DC37C949D320" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_2BCE2CD916BEF40B4001DC37C949C593" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_E675CC664D8A2B0FC32FDC37C949AD64" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_2BCE2CD916BEF40B4001DC37C949C593" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.qualys.com/role/StockBasedCompensationRestrictedStockDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D760CB921B503BCACB79DC37C969E293" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_AC89D86E9D4A2AE05CB5DC37C9696F64" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D760CB921B503BCACB79DC37C969E293" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_AC89D86E9D4A2AE05CB5DC37C9696F64" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_DD09277BDEE22445D23DDC37C9696E39" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_AC89D86E9D4A2AE05CB5DC37C9696F64" xlink:to="loc_us-gaap_AwardTypeAxis_DD09277BDEE22445D23DDC37C9696E39" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_254B4504E9291AEA5F10DC37C96950CF_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_DD09277BDEE22445D23DDC37C9696E39" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_254B4504E9291AEA5F10DC37C96950CF_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_254B4504E9291AEA5F10DC37C96950CF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_DD09277BDEE22445D23DDC37C9696E39" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_254B4504E9291AEA5F10DC37C96950CF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_9497FA3E9BCCB53A225CDC37C969D79A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_254B4504E9291AEA5F10DC37C96950CF" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_9497FA3E9BCCB53A225CDC37C969D79A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_D60CECC19FECF8CFD0F7DC37C969B4FF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D760CB921B503BCACB79DC37C969E293" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_D60CECC19FECF8CFD0F7DC37C969B4FF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_557CFBCC071DD93E79CEDC37C9696099" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_D60CECC19FECF8CFD0F7DC37C969B4FF" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_557CFBCC071DD93E79CEDC37C9696099" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_9A73DFD14FFCE296B3A9DC37C9699A70" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_D60CECC19FECF8CFD0F7DC37C969B4FF" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_9A73DFD14FFCE296B3A9DC37C9699A70" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_D0573DF7D3893057B780DC37C9697989" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_D60CECC19FECF8CFD0F7DC37C969B4FF" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_D0573DF7D3893057B780DC37C9697989" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_3C854C7E26C286D2AEABDC37C969DCAC" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_D60CECC19FECF8CFD0F7DC37C969B4FF" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_3C854C7E26C286D2AEABDC37C969DCAC" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedAndExpectedToVestOutstandingNumber" xlink:label="loc_qlys_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedAndExpectedToVestOutstandingNumber_ACA6FA4DA24AA2ED503DDC37C9695851" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D760CB921B503BCACB79DC37C969E293" xlink:to="loc_qlys_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedAndExpectedToVestOutstandingNumber_ACA6FA4DA24AA2ED503DDC37C9695851" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_F24404DC45DE183F30ABDC37C96957A9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D760CB921B503BCACB79DC37C969E293" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_F24404DC45DE183F30ABDC37C96957A9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_48241AFD4DDA493727E6DC37C969D5DB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_F24404DC45DE183F30ABDC37C96957A9" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_48241AFD4DDA493727E6DC37C969D5DB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_1E05433DF2C33DCF4841DC37C9693277" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_F24404DC45DE183F30ABDC37C96957A9" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_1E05433DF2C33DCF4841DC37C9693277" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_BD9CBC5117C301C2548ADC37C9694C41" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_F24404DC45DE183F30ABDC37C96957A9" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_BD9CBC5117C301C2548ADC37C9694C41" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_9E8880726847AEB988A1DC37C96952E0" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_F24404DC45DE183F30ABDC37C96957A9" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_9E8880726847AEB988A1DC37C96952E0" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice" xlink:label="loc_qlys_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice_94EEFDAE82CD2DE1B4F2DC37C9696270" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D760CB921B503BCACB79DC37C969E293" xlink:to="loc_qlys_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice_94EEFDAE82CD2DE1B4F2DC37C9696270" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.qualys.com/role/StockBasedCompensationStockOptionPlanActivityDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/StockBasedCompensationStockOptionsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9E6AED0343715E5BB4191FAC639087BE" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_6162585B39B33F640C8B1FAC638FC00A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9E6AED0343715E5BB4191FAC639087BE" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_6162585B39B33F640C8B1FAC638FC00A" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PlanNameAxis" xlink:label="loc_us-gaap_PlanNameAxis_56682CADF1A6B82FDD9B1FAC638FE7F9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_6162585B39B33F640C8B1FAC638FC00A" xlink:to="loc_us-gaap_PlanNameAxis_56682CADF1A6B82FDD9B1FAC638FE7F9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_3D68A1ABCAFD2420D8331FAC638FA646_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_56682CADF1A6B82FDD9B1FAC638FE7F9" xlink:to="loc_us-gaap_PlanNameDomain_3D68A1ABCAFD2420D8331FAC638FA646_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_3D68A1ABCAFD2420D8331FAC638FA646" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_56682CADF1A6B82FDD9B1FAC638FE7F9" xlink:to="loc_us-gaap_PlanNameDomain_3D68A1ABCAFD2420D8331FAC638FA646" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_A2012EquityIncentivePlanMember" xlink:label="loc_qlys_A2012EquityIncentivePlanMember_9FF9FC616D45ACD0D9851FAC638FB0CA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_3D68A1ABCAFD2420D8331FAC638FA646" xlink:to="loc_qlys_A2012EquityIncentivePlanMember_9FF9FC616D45ACD0D9851FAC638FB0CA" xlink:type="arc" />
    <link:loc xlink:href="qlys-20190630.xsd#qlys_A2000EquityIncentivePlanMember" xlink:label="loc_qlys_A2000EquityIncentivePlanMember_C133984BFEBB5D9680161FAC6390785D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_3D68A1ABCAFD2420D8331FAC638FA646" xlink:to="loc_qlys_A2000EquityIncentivePlanMember_C133984BFEBB5D9680161FAC6390785D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_61D75EACEDD0ACBC0CD01FB0EACBD49B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9E6AED0343715E5BB4191FAC639087BE" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_61D75EACEDD0ACBC0CD01FB0EACBD49B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_203717FECABDDF43AD591FAC6390CBCC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9E6AED0343715E5BB4191FAC639087BE" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_203717FECABDDF43AD591FAC6390CBCC" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.qualys.com/role/StockBasedCompensationTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/StockholdersEquity" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/StockholdersEquityDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.qualys.com/role/StockholdersEquityTables" xlink:type="extended" />
</link:linkbase>
