<?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.quanexbuildingproducts.com/role/Acquisitions" xlink:href="nx-20190430.xsd#Acquisitions" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/AcquisitionsDetail" xlink:href="nx-20190430.xsd#AcquisitionsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/AcquisitionsSummaryOfAssetsAcquiredAndLiabilitiesAssumedDetails" xlink:href="nx-20190430.xsd#AcquisitionsSummaryOfAssetsAcquiredAndLiabilitiesAssumedDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/AcquisitionsTables" xlink:href="nx-20190430.xsd#AcquisitionsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedBalanceSheetsUnaudited" xlink:href="nx-20190430.xsd#CondensedConsolidatedBalanceSheetsUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedBalanceSheetsUnauditedParenthetical" xlink:href="nx-20190430.xsd#CondensedConsolidatedBalanceSheetsUnauditedParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementOfStockholdersEquity" xlink:href="nx-20190430.xsd#CondensedConsolidatedStatementOfStockholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementOfStockholdersEquityParenthetical" xlink:href="nx-20190430.xsd#CondensedConsolidatedStatementOfStockholdersEquityParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsOfCashFlowUnaudited" xlink:href="nx-20190430.xsd#CondensedConsolidatedStatementsOfCashFlowUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsOfComprehensiveIncomeLossUnaudited" xlink:href="nx-20190430.xsd#CondensedConsolidatedStatementsOfComprehensiveIncomeLossUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsOfIncomeLossUnaudited" xlink:href="nx-20190430.xsd#CondensedConsolidatedStatementsOfIncomeLossUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsOfIncomeLossUnauditedParenthetical" xlink:href="nx-20190430.xsd#CondensedConsolidatedStatementsOfIncomeLossUnauditedParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/Contingencies" xlink:href="nx-20190430.xsd#Contingencies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/ContingenciesDetails" xlink:href="nx-20190430.xsd#ContingenciesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DebtAndCapitalLeaseObligations" xlink:href="nx-20190430.xsd#DebtAndCapitalLeaseObligations" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DebtAndCapitalLeaseObligationsDetail" xlink:href="nx-20190430.xsd#DebtAndCapitalLeaseObligationsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DebtAndCapitalLeaseObligationsTables" xlink:href="nx-20190430.xsd#DebtAndCapitalLeaseObligationsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DerivativeInstruments" xlink:href="nx-20190430.xsd#DerivativeInstruments" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DerivativeInstrumentsDetail" xlink:href="nx-20190430.xsd#DerivativeInstrumentsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DerivativeInstrumentsTables" xlink:href="nx-20190430.xsd#DerivativeInstrumentsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DocumentAndEntityInformation" xlink:href="nx-20190430.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/EarningsPerShare" xlink:href="nx-20190430.xsd#EarningsPerShare" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/EarningsPerShareDetail" xlink:href="nx-20190430.xsd#EarningsPerShareDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/EarningsPerShareEarningsPerShareTables" xlink:href="nx-20190430.xsd#EarningsPerShareEarningsPerShareTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/FairValueMeasurementOfAssetsAndLiabilities" xlink:href="nx-20190430.xsd#FairValueMeasurementOfAssetsAndLiabilities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/FairValueMeasurementOfAssetsAndLiabilitiesDetails" xlink:href="nx-20190430.xsd#FairValueMeasurementOfAssetsAndLiabilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/FairValueMeasurementOfAssetsAndLiabilitiesTables" xlink:href="nx-20190430.xsd#FairValueMeasurementOfAssetsAndLiabilitiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/GoodwillAndIntangibleAssets" xlink:href="nx-20190430.xsd#GoodwillAndIntangibleAssets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/GoodwillAndIntangibleAssetsGoodwillDetails" xlink:href="nx-20190430.xsd#GoodwillAndIntangibleAssetsGoodwillDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/GoodwillAndIntangibleAssetsIdentifiableIntangibleAssetsDetail" xlink:href="nx-20190430.xsd#GoodwillAndIntangibleAssetsIdentifiableIntangibleAssetsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/GoodwillAndIntangibleAssetsTables" xlink:href="nx-20190430.xsd#GoodwillAndIntangibleAssetsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/IncomeTaxes" xlink:href="nx-20190430.xsd#IncomeTaxes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/IncomeTaxesDetail" xlink:href="nx-20190430.xsd#IncomeTaxesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/IncomeTaxesIncomeTaxTables" xlink:href="nx-20190430.xsd#IncomeTaxesIncomeTaxTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/Inventories" xlink:href="nx-20190430.xsd#Inventories" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/InventoriesDetail" xlink:href="nx-20190430.xsd#InventoriesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/InventoriesTables" xlink:href="nx-20190430.xsd#InventoriesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentation" xlink:href="nx-20190430.xsd#NatureOfOperationsAndBasisOfPresentation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationDetails" xlink:href="nx-20190430.xsd#NatureOfOperationsAndBasisOfPresentationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationSummaryOfProductSalesDetails" xlink:href="nx-20190430.xsd#NatureOfOperationsAndBasisOfPresentationSummaryOfProductSalesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationTables" xlink:href="nx-20190430.xsd#NatureOfOperationsAndBasisOfPresentationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NewAccountingGuidanceAdopted" xlink:href="nx-20190430.xsd#NewAccountingGuidanceAdopted" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NewAccountingGuidanceAdoptedDetails" xlink:href="nx-20190430.xsd#NewAccountingGuidanceAdoptedDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/OtherIncomeExpense" xlink:href="nx-20190430.xsd#OtherIncomeExpense" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/OtherIncomeExpenseDetail" xlink:href="nx-20190430.xsd#OtherIncomeExpenseDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/OtherIncomeExpenseTables" xlink:href="nx-20190430.xsd#OtherIncomeExpenseTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/RetirementPlans" xlink:href="nx-20190430.xsd#RetirementPlans" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/RetirementPlansDetail" xlink:href="nx-20190430.xsd#RetirementPlansDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/RetirementPlansTables" xlink:href="nx-20190430.xsd#RetirementPlansTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/SegmentInformationDetails" xlink:href="nx-20190430.xsd#SegmentInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/SegmentInformationGoodwillBySegmentDetails" xlink:href="nx-20190430.xsd#SegmentInformationGoodwillBySegmentDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/SegmentInformationNotes" xlink:href="nx-20190430.xsd#SegmentInformationNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/SegmentInformationReconcilliationOfOperatingLossToNetIncomeDetails" xlink:href="nx-20190430.xsd#SegmentInformationReconcilliationOfOperatingLossToNetIncomeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/SegmentInformationSegmentReportingInformationDetails" xlink:href="nx-20190430.xsd#SegmentInformationSegmentReportingInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/SegmentInformationTables" xlink:href="nx-20190430.xsd#SegmentInformationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensation" xlink:href="nx-20190430.xsd#StockBasedCompensation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationDetail" xlink:href="nx-20190430.xsd#StockBasedCompensationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationPerformanceRestrictedStockUnitsDetails" xlink:href="nx-20190430.xsd#StockBasedCompensationPerformanceRestrictedStockUnitsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationPerformanceShareAwardsDetails" xlink:href="nx-20190430.xsd#StockBasedCompensationPerformanceShareAwardsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationRestrictedStockAwardsDetails" xlink:href="nx-20190430.xsd#StockBasedCompensationRestrictedStockAwardsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationRestrictedStockUnitsDetails" xlink:href="nx-20190430.xsd#StockBasedCompensationRestrictedStockUnitsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationStockOptionsDetails" xlink:href="nx-20190430.xsd#StockBasedCompensationStockOptionsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationTables" xlink:href="nx-20190430.xsd#StockBasedCompensationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationTreasurySharesDetails" xlink:href="nx-20190430.xsd#StockBasedCompensationTreasurySharesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/WarrantyObligations" xlink:href="nx-20190430.xsd#WarrantyObligations" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/WarrantyObligationsDetail" xlink:href="nx-20190430.xsd#WarrantyObligationsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/WarrantyObligationsTables" xlink:href="nx-20190430.xsd#WarrantyObligationsTables" 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.quanexbuildingproducts.com/role/Acquisitions" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/AcquisitionsDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/AcquisitionsSummaryOfAssetsAcquiredAndLiabilitiesAssumedDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/AcquisitionsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedBalanceSheetsUnaudited" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedBalanceSheetsUnauditedParenthetical" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementOfStockholdersEquity" 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_09E59627E43B8A2DF324E0F6927A9E28" 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_2AC0C0DF1AA465FA4ECBE0F69278E396" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_09E59627E43B8A2DF324E0F6927A9E28" xlink:to="loc_us-gaap_StatementTable_2AC0C0DF1AA465FA4ECBE0F69278E396" 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_9123FA3AE77974F5623BE0F69278D008" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_2AC0C0DF1AA465FA4ECBE0F69278E396" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_9123FA3AE77974F5623BE0F69278D008" 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_00336EC0876B7C32520BE0F692796DCA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_9123FA3AE77974F5623BE0F69278D008" xlink:to="loc_us-gaap_EquityComponentDomain_00336EC0876B7C32520BE0F692796DCA_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_00336EC0876B7C32520BE0F692796DCA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_9123FA3AE77974F5623BE0F69278D008" xlink:to="loc_us-gaap_EquityComponentDomain_00336EC0876B7C32520BE0F692796DCA" 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_49A2D7D31DBBCC7F7D1CE0F6927918D4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_00336EC0876B7C32520BE0F692796DCA" xlink:to="loc_us-gaap_CommonStockMember_49A2D7D31DBBCC7F7D1CE0F6927918D4" 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_2246FECF77C04410E2D9E0F69279EBA3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_00336EC0876B7C32520BE0F692796DCA" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_2246FECF77C04410E2D9E0F69279EBA3" 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_1483C076CBA248718B70E0F6927A72C0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_00336EC0876B7C32520BE0F692796DCA" xlink:to="loc_us-gaap_RetainedEarningsMember_1483C076CBA248718B70E0F6927A72C0" 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_A13EFDD397B20F6E8153E0F6927A5FA3" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_00336EC0876B7C32520BE0F692796DCA" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_A13EFDD397B20F6E8153E0F6927A5FA3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockMember" xlink:label="loc_us-gaap_TreasuryStockMember_7A2A300BEC5A87AE7BA6E0F6927A60BD" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_00336EC0876B7C32520BE0F692796DCA" xlink:to="loc_us-gaap_TreasuryStockMember_7A2A300BEC5A87AE7BA6E0F6927A60BD" 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_D729625BD286E7EC0284E0F6927A3982" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_09E59627E43B8A2DF324E0F6927A9E28" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_D729625BD286E7EC0284E0F6927A3982" 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_F6583D8D81A5A61BA285E0F6927A1E80" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_D729625BD286E7EC0284E0F6927A3982" xlink:to="loc_us-gaap_StockholdersEquity_F6583D8D81A5A61BA285E0F6927A1E80" 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_698CE785ED2EDD89A88CE0F6927B4AB9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_D729625BD286E7EC0284E0F6927A3982" xlink:to="loc_us-gaap_NetIncomeLoss_698CE785ED2EDD89A88CE0F6927B4AB9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_B3F4B6F3E83D00D43127E0F6927BBE28" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_D729625BD286E7EC0284E0F6927A3982" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_B3F4B6F3E83D00D43127E0F6927BBE28" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DividendsCommonStockCash" xlink:label="loc_us-gaap_DividendsCommonStockCash_7F79E89B196F2852883BE0F6927B1012" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_D729625BD286E7EC0284E0F6927A3982" xlink:to="loc_us-gaap_DividendsCommonStockCash_7F79E89B196F2852883BE0F6927B1012" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_6EA2B55060193657304BE0F6927B4018" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_D729625BD286E7EC0284E0F6927A3982" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_6EA2B55060193657304BE0F6927B4018" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationAbstract" xlink:label="loc_us-gaap_ShareBasedCompensationAbstract_6D8CE7ED5D8DF6816CC5E0F6927B1B81" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_D729625BD286E7EC0284E0F6927A3982" xlink:to="loc_us-gaap_ShareBasedCompensationAbstract_6D8CE7ED5D8DF6816CC5E0F6927B1B81" 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_F2D8BEC1F1DD8539F9F0E0F6927C17BA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationAbstract_6D8CE7ED5D8DF6816CC5E0F6927B1B81" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_F2D8BEC1F1DD8539F9F0E0F6927C17BA" 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_955CCE90DCA661BE2268E0F6927C0157" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationAbstract_6D8CE7ED5D8DF6816CC5E0F6927B1B81" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_955CCE90DCA661BE2268E0F6927C0157" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardGross" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardGross_5D88221161943920D2BEE0F6927C089D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationAbstract_6D8CE7ED5D8DF6816CC5E0F6927B1B81" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardGross_5D88221161943920D2BEE0F6927C089D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquityOther" xlink:label="loc_us-gaap_StockholdersEquityOther_3B856ABB6AFF3004E536E0F6927C08FC" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_D729625BD286E7EC0284E0F6927A3982" xlink:to="loc_us-gaap_StockholdersEquityOther_3B856ABB6AFF3004E536E0F6927C08FC" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementOfStockholdersEquityParenthetical" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsOfCashFlowUnaudited" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsOfComprehensiveIncomeLossUnaudited" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsOfIncomeLossUnaudited" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsOfIncomeLossUnauditedParenthetical" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/Contingencies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/ContingenciesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/DebtAndCapitalLeaseObligations" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/DebtAndCapitalLeaseObligationsDetail" xlink:type="extended">
    <link:loc xlink:href="nx-20190430.xsd#nx_DebtDisclosureLineItems" xlink:label="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:type="locator" />
    <link:loc xlink:href="nx-20190430.xsd#nx_DebtDisclosureTable" xlink:label="loc_nx_DebtDisclosureTable_42BE05C000BF38C2BEE5E0F6917A3019" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_nx_DebtDisclosureTable_42BE05C000BF38C2BEE5E0F6917A3019" 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_SubsequentEventTypeAxis" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_239D3BF685612B1FBCDAE0F6917AC096" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_nx_DebtDisclosureTable_42BE05C000BF38C2BEE5E0F6917A3019" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_239D3BF685612B1FBCDAE0F6917AC096" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_A074545B329591899A4DE0F6917A51AB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_239D3BF685612B1FBCDAE0F6917AC096" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_A074545B329591899A4DE0F6917A51AB_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_A074545B329591899A4DE0F6917A51AB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_239D3BF685612B1FBCDAE0F6917AC096" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_A074545B329591899A4DE0F6917A51AB" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_InterestRateScenarioAxis" xlink:label="loc_nx_InterestRateScenarioAxis_3C5E9BD71B389FBA10BFE0F6917ADA33" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_nx_DebtDisclosureTable_42BE05C000BF38C2BEE5E0F6917A3019" xlink:to="loc_nx_InterestRateScenarioAxis_3C5E9BD71B389FBA10BFE0F6917ADA33" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_InterestRateScenarioDomain" xlink:label="loc_nx_InterestRateScenarioDomain_A23953E4EFDFF88EEBD8E0F6917B1595_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_nx_InterestRateScenarioAxis_3C5E9BD71B389FBA10BFE0F6917ADA33" xlink:to="loc_nx_InterestRateScenarioDomain_A23953E4EFDFF88EEBD8E0F6917B1595_default" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_InterestRateScenarioDomain" xlink:label="loc_nx_InterestRateScenarioDomain_A23953E4EFDFF88EEBD8E0F6917B1595" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_nx_InterestRateScenarioAxis_3C5E9BD71B389FBA10BFE0F6917ADA33" xlink:to="loc_nx_InterestRateScenarioDomain_A23953E4EFDFF88EEBD8E0F6917B1595" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_LessThanOneandOneHalfLeverageRatioMember" xlink:label="loc_nx_LessThanOneandOneHalfLeverageRatioMember_A994DF3E3F90934E9354E0F6917B391E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_InterestRateScenarioDomain_A23953E4EFDFF88EEBD8E0F6917B1595" xlink:to="loc_nx_LessThanOneandOneHalfLeverageRatioMember_A994DF3E3F90934E9354E0F6917B391E" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_BetweenOneandOneHalfandTwoandOneQuarterLeverageRatioMember" xlink:label="loc_nx_BetweenOneandOneHalfandTwoandOneQuarterLeverageRatioMember_D97784F28CFDB2DDA6CDE0F6917BB049" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_InterestRateScenarioDomain_A23953E4EFDFF88EEBD8E0F6917B1595" xlink:to="loc_nx_BetweenOneandOneHalfandTwoandOneQuarterLeverageRatioMember_D97784F28CFDB2DDA6CDE0F6917BB049" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_BetweenTwoandOneQuarterandThreeLeverageRatioMember" xlink:label="loc_nx_BetweenTwoandOneQuarterandThreeLeverageRatioMember_25B17A8D12CC261EE8F7E0F6917B5742" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_InterestRateScenarioDomain_A23953E4EFDFF88EEBD8E0F6917B1595" xlink:to="loc_nx_BetweenTwoandOneQuarterandThreeLeverageRatioMember_25B17A8D12CC261EE8F7E0F6917B5742" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_GreaterThanThreeLeverageRatioMember" xlink:label="loc_nx_GreaterThanThreeLeverageRatioMember_9EB44A6F47E9F1622013E0F6917C4D87" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_InterestRateScenarioDomain_A23953E4EFDFF88EEBD8E0F6917B1595" xlink:to="loc_nx_GreaterThanThreeLeverageRatioMember_9EB44A6F47E9F1622013E0F6917C4D87" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NewAccountingPronouncementEarlyAdoptionAxis" xlink:label="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionAxis_49AA5C4EAABE82121639E0F6917C2AE9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_nx_DebtDisclosureTable_42BE05C000BF38C2BEE5E0F6917A3019" xlink:to="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionAxis_49AA5C4EAABE82121639E0F6917C2AE9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NewAccountingPrinciplesEarlyAdoptionMember" xlink:label="loc_us-gaap_NewAccountingPrinciplesEarlyAdoptionMember_97108EA636AB6CAEAE88E0F6917CD2ED_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionAxis_49AA5C4EAABE82121639E0F6917C2AE9" xlink:to="loc_us-gaap_NewAccountingPrinciplesEarlyAdoptionMember_97108EA636AB6CAEAE88E0F6917CD2ED_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NewAccountingPrinciplesEarlyAdoptionMember" xlink:label="loc_us-gaap_NewAccountingPrinciplesEarlyAdoptionMember_97108EA636AB6CAEAE88E0F6917CD2ED" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionAxis_49AA5C4EAABE82121639E0F6917C2AE9" xlink:to="loc_us-gaap_NewAccountingPrinciplesEarlyAdoptionMember_97108EA636AB6CAEAE88E0F6917CD2ED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_093E41802BCE86247679E0F6917C17DA" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_nx_DebtDisclosureTable_42BE05C000BF38C2BEE5E0F6917A3019" xlink:to="loc_srt_RangeAxis_093E41802BCE86247679E0F6917C17DA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_8882CE1B0C902DAA8EDAE0F6917C3F5F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_093E41802BCE86247679E0F6917C17DA" xlink:to="loc_srt_RangeMember_8882CE1B0C902DAA8EDAE0F6917C3F5F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_8882CE1B0C902DAA8EDAE0F6917C3F5F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_093E41802BCE86247679E0F6917C17DA" xlink:to="loc_srt_RangeMember_8882CE1B0C902DAA8EDAE0F6917C3F5F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_F1A40A10260A8496110AE0F6917DE841" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_8882CE1B0C902DAA8EDAE0F6917C3F5F" xlink:to="loc_srt_MinimumMember_F1A40A10260A8496110AE0F6917DE841" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_33A3D516F32F5E1EE81DE0F6917D6F43" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_8882CE1B0C902DAA8EDAE0F6917C3F5F" xlink:to="loc_srt_MaximumMember_33A3D516F32F5E1EE81DE0F6917D6F43" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableRateAxis" xlink:label="loc_us-gaap_VariableRateAxis_290044A0277D1DA212C8E0F6917D6DF7" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_nx_DebtDisclosureTable_42BE05C000BF38C2BEE5E0F6917A3019" xlink:to="loc_us-gaap_VariableRateAxis_290044A0277D1DA212C8E0F6917D6DF7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_4875F4F99AE27FF66F7CE0F6917D5C6A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_290044A0277D1DA212C8E0F6917D6DF7" xlink:to="loc_us-gaap_VariableRateDomain_4875F4F99AE27FF66F7CE0F6917D5C6A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_4875F4F99AE27FF66F7CE0F6917D5C6A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_290044A0277D1DA212C8E0F6917D6DF7" xlink:to="loc_us-gaap_VariableRateDomain_4875F4F99AE27FF66F7CE0F6917D5C6A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BaseRateMember" xlink:label="loc_us-gaap_BaseRateMember_4A1D317474F4CE15D4D7E0F6917DC6C0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_4875F4F99AE27FF66F7CE0F6917D5C6A" xlink:to="loc_us-gaap_BaseRateMember_4A1D317474F4CE15D4D7E0F6917DC6C0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LondonInterbankOfferedRateLIBORMember" xlink:label="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_113F558FB772EC62B392E0F6917ED13B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_4875F4F99AE27FF66F7CE0F6917D5C6A" xlink:to="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_113F558FB772EC62B392E0F6917ED13B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaap_CreditFacilityAxis_6F2A743ECE8AAE60C743E0F6917E6C42" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_nx_DebtDisclosureTable_42BE05C000BF38C2BEE5E0F6917A3019" xlink:to="loc_us-gaap_CreditFacilityAxis_6F2A743ECE8AAE60C743E0F6917E6C42" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_033AF3EE232B01A1F354E0F6917E43BA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_6F2A743ECE8AAE60C743E0F6917E6C42" xlink:to="loc_us-gaap_CreditFacilityDomain_033AF3EE232B01A1F354E0F6917E43BA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_033AF3EE232B01A1F354E0F6917E43BA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_6F2A743ECE8AAE60C743E0F6917E6C42" xlink:to="loc_us-gaap_CreditFacilityDomain_033AF3EE232B01A1F354E0F6917E43BA" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_A2018CreditFacilityMember" xlink:label="loc_nx_A2018CreditFacilityMember_263274685B134A65121FE0F6917EFFAC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_033AF3EE232B01A1F354E0F6917E43BA" xlink:to="loc_nx_A2018CreditFacilityMember_263274685B134A65121FE0F6917EFFAC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevolvingCreditFacilityMember" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_77710E94CD00CAEE15F7E0F6917F56DB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_033AF3EE232B01A1F354E0F6917E43BA" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_77710E94CD00CAEE15F7E0F6917F56DB" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_TermLoanFacilityMember" xlink:label="loc_nx_TermLoanFacilityMember_8377ACB586F753D12A0FE0F6917FFC67" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_033AF3EE232B01A1F354E0F6917E43BA" xlink:to="loc_nx_TermLoanFacilityMember_8377ACB586F753D12A0FE0F6917FFC67" 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_AA6946C5E8C50875B30DE0F6917F9521" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_nx_DebtDisclosureTable_42BE05C000BF38C2BEE5E0F6917A3019" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_AA6946C5E8C50875B30DE0F6917F9521" 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_19C930E023859D6D3AE1E0F6917FDFC5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_AA6946C5E8C50875B30DE0F6917F9521" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_19C930E023859D6D3AE1E0F6917FDFC5_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_19C930E023859D6D3AE1E0F6917FDFC5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_AA6946C5E8C50875B30DE0F6917F9521" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_19C930E023859D6D3AE1E0F6917FDFC5" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_HLPMember" xlink:label="loc_nx_HLPMember_5EECC241442CA0962D51E0F6917FF93D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_19C930E023859D6D3AE1E0F6917FDFC5" xlink:to="loc_nx_HLPMember_5EECC241442CA0962D51E0F6917FF93D" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_8E49A5B691047D5205B0E0F69180859A" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_nx_DebtDisclosureTable_42BE05C000BF38C2BEE5E0F6917A3019" xlink:to="loc_dei_LegalEntityAxis_8E49A5B691047D5205B0E0F69180859A" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_A8996E5E28A46EDC9792E0F691802E37_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_8E49A5B691047D5205B0E0F69180859A" xlink:to="loc_dei_EntityDomain_A8996E5E28A46EDC9792E0F691802E37_default" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_A8996E5E28A46EDC9792E0F691802E37" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_8E49A5B691047D5205B0E0F69180859A" xlink:to="loc_dei_EntityDomain_A8996E5E28A46EDC9792E0F691802E37" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_HLPMember" xlink:label="loc_nx_HLPMember_A75B284615F1479BE6AFE0F691801A2F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_A8996E5E28A46EDC9792E0F691802E37" xlink:to="loc_nx_HLPMember_A75B284615F1479BE6AFE0F691801A2F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_4E57BB21AD11F95D8544E0F69180EC30" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_nx_DebtDisclosureTable_42BE05C000BF38C2BEE5E0F6917A3019" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_4E57BB21AD11F95D8544E0F69180EC30" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_FC658EDB80CBF598357AE0F6918047EA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_4E57BB21AD11F95D8544E0F69180EC30" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_FC658EDB80CBF598357AE0F6918047EA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_FC658EDB80CBF598357AE0F6918047EA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_4E57BB21AD11F95D8544E0F69180EC30" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_FC658EDB80CBF598357AE0F6918047EA" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_TermLoanFacilityMember" xlink:label="loc_nx_TermLoanFacilityMember_605F58F3072E700FDDA7E0F69181B641" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_FC658EDB80CBF598357AE0F6918047EA" xlink:to="loc_nx_TermLoanFacilityMember_605F58F3072E700FDDA7E0F69181B641" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditMember" xlink:label="loc_us-gaap_LineOfCreditMember_C6D32FF445B85053E0A0E0F691813BA3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_FC658EDB80CBF598357AE0F6918047EA" xlink:to="loc_us-gaap_LineOfCreditMember_C6D32FF445B85053E0A0E0F691813BA3" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_CapitalLeaseObligationsAndOtherMember" xlink:label="loc_nx_CapitalLeaseObligationsAndOtherMember_9A50142F526E8C5D33AFE0F69181241B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_FC658EDB80CBF598357AE0F6918047EA" xlink:to="loc_nx_CapitalLeaseObligationsAndOtherMember_9A50142F526E8C5D33AFE0F69181241B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CapitalLeaseObligationsMember" xlink:label="loc_us-gaap_CapitalLeaseObligationsMember_03551B9B1F1EE75EED3FE0F691817AB4" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_FC658EDB80CBF598357AE0F6918047EA" xlink:to="loc_us-gaap_CapitalLeaseObligationsMember_03551B9B1F1EE75EED3FE0F691817AB4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevolvingCreditFacilityMember" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_7A1510BA0F6BCDDB1188E0F69182F2FF" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_FC658EDB80CBF598357AE0F6918047EA" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_7A1510BA0F6BCDDB1188E0F69182F2FF" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_A2018CreditFacilityMember" xlink:label="loc_nx_A2018CreditFacilityMember_24D783DB8E6E68D13948E0F69182A5A0" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_FC658EDB80CBF598357AE0F6918047EA" xlink:to="loc_nx_A2018CreditFacilityMember_24D783DB8E6E68D13948E0F69182A5A0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_16075CBD0BEEBF35A548E0F69182815F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_16075CBD0BEEBF35A548E0F69182815F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromLinesOfCredit" xlink:label="loc_us-gaap_ProceedsFromLinesOfCredit_6AA7A65ABF76194467E5E0F69182A4DA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_6AA7A65ABF76194467E5E0F69182A4DA" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_DocumentPeriodEndDate" xlink:label="loc_dei_DocumentPeriodEndDate_E5B345C8C6D275279FECE0F6918201D7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_dei_DocumentPeriodEndDate_E5B345C8C6D275279FECE0F6918201D7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCredit" xlink:label="loc_us-gaap_LineOfCredit_667C618C6C7383531288E0F6918314F7" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_us-gaap_LineOfCredit_667C618C6C7383531288E0F6918314F7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherLongTermDebt" xlink:label="loc_us-gaap_OtherLongTermDebt_B04DCA7D60894DB5E12CE0F691831CF6" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_us-gaap_OtherLongTermDebt_B04DCA7D60894DB5E12CE0F691831CF6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CapitalLeaseObligations" xlink:label="loc_us-gaap_CapitalLeaseObligations_476C18C49A6029F713CCE0F69183FA33" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_us-gaap_CapitalLeaseObligations_476C18C49A6029F713CCE0F69183FA33" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredFinanceCostsOwnshareLendingArrangementIssuanceCostsNet" xlink:label="loc_us-gaap_DeferredFinanceCostsOwnshareLendingArrangementIssuanceCostsNet_3ACD33C42510BBF4EE54E0F69183F0E7" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_us-gaap_DeferredFinanceCostsOwnshareLendingArrangementIssuanceCostsNet_3ACD33C42510BBF4EE54E0F69183F0E7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtAndCapitalLeaseObligations" xlink:label="loc_us-gaap_DebtAndCapitalLeaseObligations_8623466CEB3722A07F26E0F691830678" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_us-gaap_DebtAndCapitalLeaseObligations_8623466CEB3722A07F26E0F691830678" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_9A527DEDA4C9CC4184E1E0F69184022F" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_9A527DEDA4C9CC4184E1E0F69184022F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligations" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_8ADE4E1964B6D8F7BB1DE0F691849126" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_8ADE4E1964B6D8F7BB1DE0F691849126" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentInterestRateDuringPeriod" xlink:label="loc_us-gaap_DebtInstrumentInterestRateDuringPeriod_17DAB0856F99B8B68F7AE0F69184BD00" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_us-gaap_DebtInstrumentInterestRateDuringPeriod_17DAB0856F99B8B68F7AE0F69184BD00" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RepaymentsOfLinesOfCredit" xlink:label="loc_us-gaap_RepaymentsOfLinesOfCredit_518DC920AC98D1D72205E0F691846F4D" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_us-gaap_RepaymentsOfLinesOfCredit_518DC920AC98D1D72205E0F691846F4D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtWeightedAverageInterestRate" xlink:label="loc_us-gaap_LongtermDebtWeightedAverageInterestRate_7B9434CECA47C17D8F94E0F69184E3A7" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_us-gaap_LongtermDebtWeightedAverageInterestRate_7B9434CECA47C17D8F94E0F69184E3A7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CapitalLeaseObligationsCurrent" xlink:label="loc_us-gaap_CapitalLeaseObligationsCurrent_2E8E9E8772B1847D74A4E0F69184414B" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_us-gaap_CapitalLeaseObligationsCurrent_2E8E9E8772B1847D74A4E0F69184414B" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_CapitalLeasesinPropertyPlantandEquipment" xlink:label="loc_nx_CapitalLeasesinPropertyPlantandEquipment_86AB7699A98FFD8B708CE0F691845963" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_nx_CapitalLeasesinPropertyPlantandEquipment_86AB7699A98FFD8B708CE0F691845963" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_Capitalleasesinaccumulateddepreciation" xlink:label="loc_nx_Capitalleasesinaccumulateddepreciation_C26A50087D17A0174D5EE0F6918575AB" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_nx_Capitalleasesinaccumulateddepreciation_C26A50087D17A0174D5EE0F6918575AB" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_WarehouseLeaseinPropertyPlantandEquipment" xlink:label="loc_nx_WarehouseLeaseinPropertyPlantandEquipment_4A6ED5467BC231FB69B9E0F691856552" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_nx_WarehouseLeaseinPropertyPlantandEquipment_4A6ED5467BC231FB69B9E0F691856552" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_WarehouseLeaseinAccumulatedDepreciation" xlink:label="loc_nx_WarehouseLeaseinAccumulatedDepreciation_E3CB83A8EBFBB42B9073E0F6918595DA" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_nx_WarehouseLeaseinAccumulatedDepreciation_E3CB83A8EBFBB42B9073E0F6918595DA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CapitalLeaseObligationsNoncurrent" xlink:label="loc_us-gaap_CapitalLeaseObligationsNoncurrent_001B4255F26C2CFD2F96E0F6918563E4" xlink:type="locator" />
    <link:definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_us-gaap_CapitalLeaseObligationsNoncurrent_001B4255F26C2CFD2F96E0F6918563E4" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_LineofCreditFacilityMaximumBorrowingCapacityCommittedAmount" xlink:label="loc_nx_LineofCreditFacilityMaximumBorrowingCapacityCommittedAmount_3CE42E9CAB2BEE816C0BE0F6918521E0" xlink:type="locator" />
    <link:definitionArc order="20" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_nx_LineofCreditFacilityMaximumBorrowingCapacityCommittedAmount_3CE42E9CAB2BEE816C0BE0F6918521E0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityCommitmentFeePercentage" xlink:label="loc_us-gaap_LineOfCreditFacilityCommitmentFeePercentage_E0CCF0F0EB2856A4CE0AE0F691857459" xlink:type="locator" />
    <link:definitionArc order="21" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_us-gaap_LineOfCreditFacilityCommitmentFeePercentage_E0CCF0F0EB2856A4CE0AE0F691857459" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_F4101936EBD97ED9E916E0F69186ACC2" xlink:type="locator" />
    <link:definitionArc order="22" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_F4101936EBD97ED9E916E0F69186ACC2" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_DebtInstrumentDebtDefaultInterestAccrualRate" xlink:label="loc_nx_DebtInstrumentDebtDefaultInterestAccrualRate_9C344CB0BF96F477CD2CE0F6918641CE" xlink:type="locator" />
    <link:definitionArc order="23" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_nx_DebtInstrumentDebtDefaultInterestAccrualRate_9C344CB0BF96F477CD2CE0F6918641CE" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_DebtInstrumentRequiredLeverageRatio" xlink:label="loc_nx_DebtInstrumentRequiredLeverageRatio_AFD95AE5AFBD3C5F52F8E0F69186607C" xlink:type="locator" />
    <link:definitionArc order="24" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_nx_DebtInstrumentRequiredLeverageRatio_AFD95AE5AFBD3C5F52F8E0F69186607C" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_DebtInstrumentLimitationonAnnualDividend" xlink:label="loc_nx_DebtInstrumentLimitationonAnnualDividend_0C6270406FAEF7E10165E0F69186F32D" xlink:type="locator" />
    <link:definitionArc order="25" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_nx_DebtInstrumentLimitationonAnnualDividend_0C6270406FAEF7E10165E0F69186F32D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_D3BFEDF15B0F220CB758E0F691866957" xlink:type="locator" />
    <link:definitionArc order="26" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_D3BFEDF15B0F220CB758E0F691866957" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_DebtInstrumentMaximumFixedChargeCoverageRatio" xlink:label="loc_nx_DebtInstrumentMaximumFixedChargeCoverageRatio_BF5052D3D91EB23E26D0E0F69186F29E" xlink:type="locator" />
    <link:definitionArc order="27" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_nx_DebtInstrumentMaximumFixedChargeCoverageRatio_BF5052D3D91EB23E26D0E0F69186F29E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherAssetsNoncurrent" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_6AF49126F825E840AFD1E0F69187CCCF" xlink:type="locator" />
    <link:definitionArc order="28" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_6AF49126F825E840AFD1E0F69187CCCF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtDisclosureAbstract" xlink:label="loc_us-gaap_DebtDisclosureAbstract_7846F1AA4B66360C7536E0F691879079" xlink:type="locator" />
    <link:definitionArc order="29" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_CA2E10B65E3B7678E31FE0F6918207FE" xlink:to="loc_us-gaap_DebtDisclosureAbstract_7846F1AA4B66360C7536E0F691879079" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_DCC9CF58DB3477832078E0F691871D72" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtDisclosureAbstract_7846F1AA4B66360C7536E0F691879079" xlink:to="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_DCC9CF58DB3477832078E0F691871D72" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LettersOfCreditOutstandingAmount" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_31729AC40A0EAC09268BE0F69187FD0F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtDisclosureAbstract_7846F1AA4B66360C7536E0F691879079" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_31729AC40A0EAC09268BE0F69187FD0F" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/DebtAndCapitalLeaseObligationsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/DerivativeInstruments" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/DerivativeInstrumentsDetail" 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_F0EB2A97466B6B16629FE0F6914EEDFE" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeTable" xlink:label="loc_us-gaap_DerivativeTable_51B63B65651C821DC722E0F6914D2523" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_F0EB2A97466B6B16629FE0F6914EEDFE" xlink:to="loc_us-gaap_DerivativeTable_51B63B65651C821DC722E0F6914D2523" 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_E78871EF9E2B68CD5B58E0F6914D15A4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_51B63B65651C821DC722E0F6914D2523" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_E78871EF9E2B68CD5B58E0F6914D15A4" 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_A748F167AD67E3726DD4E0F6914E9F85_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_E78871EF9E2B68CD5B58E0F6914D15A4" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_A748F167AD67E3726DD4E0F6914E9F85_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_A748F167AD67E3726DD4E0F6914E9F85" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_E78871EF9E2B68CD5B58E0F6914D15A4" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_A748F167AD67E3726DD4E0F6914E9F85" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_OtherNonOperatingIncomeLossMember" xlink:label="loc_nx_OtherNonOperatingIncomeLossMember_85F838F75FD25AC2A2EDE0F6914E1524" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_A748F167AD67E3726DD4E0F6914E9F85" xlink:to="loc_nx_OtherNonOperatingIncomeLossMember_85F838F75FD25AC2A2EDE0F6914E1524" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GainLossOnForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstruments" xlink:label="loc_us-gaap_GainLossOnForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstruments_E021391C94FA51FE914AE0F6914F3E9F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_F0EB2A97466B6B16629FE0F6914EEDFE" xlink:to="loc_us-gaap_GainLossOnForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstruments_E021391C94FA51FE914AE0F6914F3E9F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeLineItems" xlink:label="loc_us-gaap_DerivativeLineItems_AC77B52FA393425F219EE0F69150C4E6" 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_C8BCF55648123F34055DE0F6914F3B2B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_AC77B52FA393425F219EE0F69150C4E6" xlink:to="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_C8BCF55648123F34055DE0F6914F3B2B" 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_CDEEC3DCC8F65A8AB757E0F6914F497D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_C8BCF55648123F34055DE0F6914F3B2B" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_CDEEC3DCC8F65A8AB757E0F6914F497D" 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_8173EF44E6A47906800BE0F6914F06AC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_CDEEC3DCC8F65A8AB757E0F6914F497D" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_8173EF44E6A47906800BE0F6914F06AC_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_8173EF44E6A47906800BE0F6914F06AC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_CDEEC3DCC8F65A8AB757E0F6914F497D" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_8173EF44E6A47906800BE0F6914F06AC" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_PrepaidAndOtherCurrentAssetsMember" xlink:label="loc_nx_PrepaidAndOtherCurrentAssetsMember_49C3F596551E5232994FE0F691501D3B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_8173EF44E6A47906800BE0F6914F06AC" xlink:to="loc_nx_PrepaidAndOtherCurrentAssetsMember_49C3F596551E5232994FE0F691501D3B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccruedLiabilitiesMember" xlink:label="loc_us-gaap_AccruedLiabilitiesMember_51F954904D7507C22911E0F69150A510" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_8173EF44E6A47906800BE0F6914F06AC" xlink:to="loc_us-gaap_AccruedLiabilitiesMember_51F954904D7507C22911E0F69150A510" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsAssetAtFairValue" xlink:label="loc_us-gaap_ForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsAssetAtFairValue_356242BA81D84246E79EE0F69150765D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_AC77B52FA393425F219EE0F69150C4E6" xlink:to="loc_us-gaap_ForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsAssetAtFairValue_356242BA81D84246E79EE0F69150765D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsLiabilityAtFairValue" xlink:label="loc_us-gaap_ForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsLiabilityAtFairValue_4A0F7127A148184EB895E0F691504035" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_AC77B52FA393425F219EE0F69150C4E6" xlink:to="loc_us-gaap_ForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsLiabilityAtFairValue_4A0F7127A148184EB895E0F691504035" xlink:type="arc" />
    <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_4A8DFD52D622F3C8146AE0F691520617" xlink:type="locator" />
    <link:loc xlink:href="nx-20190430.xsd#nx_DerivativeInstrumentsAndFairValueTable" xlink:label="loc_nx_DerivativeInstrumentsAndFairValueTable_DD0B9EC1A7E9584A5418E0F69151D060" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_4A8DFD52D622F3C8146AE0F691520617" xlink:to="loc_nx_DerivativeInstrumentsAndFairValueTable_DD0B9EC1A7E9584A5418E0F69151D060" 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_CE6E4FD734B6BB2F60AFE0F6915128F4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_nx_DerivativeInstrumentsAndFairValueTable_DD0B9EC1A7E9584A5418E0F69151D060" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_CE6E4FD734B6BB2F60AFE0F6915128F4" 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_EF5393214BCD4E32CA28E0F69151AB3F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_CE6E4FD734B6BB2F60AFE0F6915128F4" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_EF5393214BCD4E32CA28E0F69151AB3F_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_EF5393214BCD4E32CA28E0F69151AB3F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_CE6E4FD734B6BB2F60AFE0F6915128F4" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_EF5393214BCD4E32CA28E0F69151AB3F" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_SellEURMember" xlink:label="loc_nx_SellEURMember_6DF857AE4AE4260944AAE0F69152D62E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_EF5393214BCD4E32CA28E0F69151AB3F" xlink:to="loc_nx_SellEURMember_6DF857AE4AE4260944AAE0F69152D62E" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_SellCADMember" xlink:label="loc_nx_SellCADMember_5CE4BFDAD2D4B81490ADE0F69152F687" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_EF5393214BCD4E32CA28E0F69151AB3F" xlink:to="loc_nx_SellCADMember_5CE4BFDAD2D4B81490ADE0F69152F687" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_SellGBPMember" xlink:label="loc_nx_SellGBPMember_33581095FDAFC357922BE0F69152BEC5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_EF5393214BCD4E32CA28E0F69151AB3F" xlink:to="loc_nx_SellGBPMember_33581095FDAFC357922BE0F69152BEC5" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_BuyEurSellGbpMember" xlink:label="loc_nx_BuyEurSellGbpMember_1F912974774C429BC935E0F69152787D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_EF5393214BCD4E32CA28E0F69151AB3F" xlink:to="loc_nx_BuyEurSellGbpMember_1F912974774C429BC935E0F69152787D" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_BuyUSDSellEURMember" xlink:label="loc_nx_BuyUSDSellEURMember_1A3911C7E0727DDF253FE0F691523BAC" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_EF5393214BCD4E32CA28E0F69151AB3F" xlink:to="loc_nx_BuyUSDSellEURMember_1A3911C7E0727DDF253FE0F691523BAC" 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_FA00252FFE1078BB605EE0F69153426C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_4A8DFD52D622F3C8146AE0F691520617" xlink:to="loc_invest_DerivativeNotionalAmount_FA00252FFE1078BB605EE0F69153426C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsAtFairValueNet" xlink:label="loc_us-gaap_ForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsAtFairValueNet_1F882210C11E971F3E16E0F6915358AF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_4A8DFD52D622F3C8146AE0F691520617" xlink:to="loc_us-gaap_ForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsAtFairValueNet_1F882210C11E971F3E16E0F6915358AF" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/DerivativeInstrumentsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/DocumentAndEntityInformation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/EarningsPerShare" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/EarningsPerShareDetail" xlink:type="extended">
    <link:loc xlink:href="nx-20190430.xsd#nx_EarningsPerShareDisclosureLineItems" xlink:label="loc_nx_EarningsPerShareDisclosureLineItems_871DBAAB5E87C2E4AFC0E0F692D816EE" xlink:type="locator" />
    <link:loc xlink:href="nx-20190430.xsd#nx_EarningsPerShareDisclosureTable" xlink:label="loc_nx_EarningsPerShareDisclosureTable_53566F913100030B193DE0F692D0FE46" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_871DBAAB5E87C2E4AFC0E0F692D816EE" xlink:to="loc_nx_EarningsPerShareDisclosureTable_53566F913100030B193DE0F692D0FE46" 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_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_E9270FA4FF0CC1B04B04E0F692D12939" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_nx_EarningsPerShareDisclosureTable_53566F913100030B193DE0F692D0FE46" xlink:to="loc_us-gaap_StatementClassOfStockAxis_E9270FA4FF0CC1B04B04E0F692D12939" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_2CE44E3C902E738ABCE5E0F692D16358_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_E9270FA4FF0CC1B04B04E0F692D12939" xlink:to="loc_us-gaap_ClassOfStockDomain_2CE44E3C902E738ABCE5E0F692D16358_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_2CE44E3C902E738ABCE5E0F692D16358" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_E9270FA4FF0CC1B04B04E0F692D12939" xlink:to="loc_us-gaap_ClassOfStockDomain_2CE44E3C902E738ABCE5E0F692D16358" 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_D9EE0AE51E6CE340C4D3E0F692D1EC4D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_2CE44E3C902E738ABCE5E0F692D16358" xlink:to="loc_us-gaap_CommonStockMember_D9EE0AE51E6CE340C4D3E0F692D1EC4D" 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_D04B456115E38A8B7703E0F692D1E7A4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_2CE44E3C902E738ABCE5E0F692D16358" xlink:to="loc_us-gaap_EmployeeStockOptionMember_D04B456115E38A8B7703E0F692D1E7A4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_A2DDD8701E49213E8EE1E0F692D287C9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_2CE44E3C902E738ABCE5E0F692D16358" xlink:to="loc_us-gaap_RestrictedStockMember_A2DDD8701E49213E8EE1E0F692D287C9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PerformanceSharesMember" xlink:label="loc_us-gaap_PerformanceSharesMember_11AFC678C2290BA703E8E0F692D2D902" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_2CE44E3C902E738ABCE5E0F692D16358" xlink:to="loc_us-gaap_PerformanceSharesMember_11AFC678C2290BA703E8E0F692D2D902" 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_9560ED82BE979D4D2BFFE0F692D21FC2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_nx_EarningsPerShareDisclosureTable_53566F913100030B193DE0F692D0FE46" xlink:to="loc_us-gaap_AwardTypeAxis_9560ED82BE979D4D2BFFE0F692D21FC2" 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_EF51ECD76642A82BA603E0F692D28F47_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_9560ED82BE979D4D2BFFE0F692D21FC2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_EF51ECD76642A82BA603E0F692D28F47_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_EF51ECD76642A82BA603E0F692D28F47" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_9560ED82BE979D4D2BFFE0F692D21FC2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_EF51ECD76642A82BA603E0F692D28F47" 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_503A2D3B21A5E314E2A6E0F692D239B0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_EF51ECD76642A82BA603E0F692D28F47" xlink:to="loc_us-gaap_EmployeeStockOptionMember_503A2D3B21A5E314E2A6E0F692D239B0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_5DA9B04B01D78F120FCDE0F692D3FA80" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_EF51ECD76642A82BA603E0F692D28F47" xlink:to="loc_us-gaap_RestrictedStockMember_5DA9B04B01D78F120FCDE0F692D3FA80" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PerformanceSharesMember" xlink:label="loc_us-gaap_PerformanceSharesMember_10665BD330AD6A7C4D48E0F692D8C0C5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_EF51ECD76642A82BA603E0F692D28F47" xlink:to="loc_us-gaap_PerformanceSharesMember_10665BD330AD6A7C4D48E0F692D8C0C5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_9C779DE1306A56A8930AE0F692D8985A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_871DBAAB5E87C2E4AFC0E0F692D816EE" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_9C779DE1306A56A8930AE0F692D8985A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_E7A4386097278A7A1118E0F692D9EF73" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_871DBAAB5E87C2E4AFC0E0F692D816EE" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_E7A4386097278A7A1118E0F692D9EF73" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_5018C4F163EEADE91111E0F692D956AE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_871DBAAB5E87C2E4AFC0E0F692D816EE" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_5018C4F163EEADE91111E0F692D956AE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsPerBasicShare" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsPerBasicShare_F39D10C585948A45FFFCE0F692D918C1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_871DBAAB5E87C2E4AFC0E0F692D816EE" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsPerBasicShare_F39D10C585948A45FFFCE0F692D918C1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment" xlink:label="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_8C959F925B0A60A88A7CE0F692D9A821" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_871DBAAB5E87C2E4AFC0E0F692D816EE" xlink:to="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_8C959F925B0A60A88A7CE0F692D9A821" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_69FB4BBC04A8BA3CD83FE0F692D9DFA6" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_871DBAAB5E87C2E4AFC0E0F692D816EE" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_69FB4BBC04A8BA3CD83FE0F692D9DFA6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsPerDilutedShare" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsPerDilutedShare_B081EC3C2DF514357223E0F692D9A391" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_871DBAAB5E87C2E4AFC0E0F692D816EE" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsPerDilutedShare_B081EC3C2DF514357223E0F692D9A391" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EarningsPerShareBasicAndDiluted" xlink:label="loc_us-gaap_EarningsPerShareBasicAndDiluted_90E827F255F17E5B17B3E0F692DA15E8" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_871DBAAB5E87C2E4AFC0E0F692D816EE" xlink:to="loc_us-gaap_EarningsPerShareBasicAndDiluted_90E827F255F17E5B17B3E0F692DA15E8" 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_41D2A848794746AC8A2BE0F692DA112D" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_871DBAAB5E87C2E4AFC0E0F692D816EE" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_41D2A848794746AC8A2BE0F692DA112D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EarningsPerShareDiluted" xlink:label="loc_us-gaap_EarningsPerShareDiluted_8437B1388F1A0D98D896E0F692DA06B1" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_871DBAAB5E87C2E4AFC0E0F692D816EE" xlink:to="loc_us-gaap_EarningsPerShareDiluted_8437B1388F1A0D98D896E0F692DA06B1" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/EarningsPerShareEarningsPerShareTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/FairValueMeasurementOfAssetsAndLiabilities" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/FairValueMeasurementOfAssetsAndLiabilitiesDetails" 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_00191636E62E1C43729AE0F6921C5BF4" 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_4374B7F5A61206D43EBAE0F6921B2BDB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_00191636E62E1C43729AE0F6921C5BF4" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_4374B7F5A61206D43EBAE0F6921B2BDB" 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_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_28DD8AC56003E8E034F9E0F6921B55EC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_4374B7F5A61206D43EBAE0F6921B2BDB" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_28DD8AC56003E8E034F9E0F6921B55EC" 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_51431F6F9A2F4FFB6990E0F6921CBAA3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_28DD8AC56003E8E034F9E0F6921B55EC" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_51431F6F9A2F4FFB6990E0F6921CBAA3_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_51431F6F9A2F4FFB6990E0F6921CBAA3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_28DD8AC56003E8E034F9E0F6921B55EC" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_51431F6F9A2F4FFB6990E0F6921CBAA3" 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_E90C307E1917F5A29BE0E0F6921C5176" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_51431F6F9A2F4FFB6990E0F6921CBAA3" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_E90C307E1917F5A29BE0E0F6921C5176" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsAssetAtFairValue" xlink:label="loc_us-gaap_ForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsAssetAtFairValue_92902968311464A44C68E0F6921CF655" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_00191636E62E1C43729AE0F6921C5BF4" xlink:to="loc_us-gaap_ForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsAssetAtFairValue_92902968311464A44C68E0F6921CF655" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsLiabilityAtFairValue" xlink:label="loc_us-gaap_ForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsLiabilityAtFairValue_1D9031506E2C0F1D9578E0F6921DF8CC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_00191636E62E1C43729AE0F6921C5BF4" xlink:to="loc_us-gaap_ForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsLiabilityAtFairValue_1D9031506E2C0F1D9578E0F6921DF8CC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_E5C67BCD6DF5082A746AE0F6921D864B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_00191636E62E1C43729AE0F6921C5BF4" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_E5C67BCD6DF5082A746AE0F6921D864B" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/FairValueMeasurementOfAssetsAndLiabilitiesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/GoodwillAndIntangibleAssets" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/GoodwillAndIntangibleAssetsGoodwillDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillLineItems" xlink:label="loc_us-gaap_GoodwillLineItems_A463809FDDD561C20F67095E0ACBAB09" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfGoodwillTable" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_3E3CEDF075BDE3A7550F095E0AC9DD2F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_A463809FDDD561C20F67095E0ACBAB09" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_3E3CEDF075BDE3A7550F095E0AC9DD2F" 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_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_E2F1412154CC5A6C1FA2095E0ACA017F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_3E3CEDF075BDE3A7550F095E0AC9DD2F" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_E2F1412154CC5A6C1FA2095E0ACA017F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_3A6E83FF92ED95FBBFD1095E0ACAE5B2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_E2F1412154CC5A6C1FA2095E0ACA017F" xlink:to="loc_us-gaap_SegmentDomain_3A6E83FF92ED95FBBFD1095E0ACAE5B2_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_3A6E83FF92ED95FBBFD1095E0ACAE5B2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_E2F1412154CC5A6C1FA2095E0ACA017F" xlink:to="loc_us-gaap_SegmentDomain_3A6E83FF92ED95FBBFD1095E0ACAE5B2" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_NACabinetComponentsMember" xlink:label="loc_nx_NACabinetComponentsMember_BC62B3F822272125A0C6095E0ACAB318" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_3A6E83FF92ED95FBBFD1095E0ACAE5B2" xlink:to="loc_nx_NACabinetComponentsMember_BC62B3F822272125A0C6095E0ACAB318" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillImpairmentLoss" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_34A7F9131234B4AEE48A095E0ACBB4DA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_A463809FDDD561C20F67095E0ACBAB09" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_34A7F9131234B4AEE48A095E0ACBB4DA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillRollForward" xlink:label="loc_us-gaap_GoodwillRollForward_1DF1945D9A5C3546A5E6095E0ACC9013" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_A463809FDDD561C20F67095E0ACBAB09" xlink:to="loc_us-gaap_GoodwillRollForward_1DF1945D9A5C3546A5E6095E0ACC9013" 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_F76D42C5CC7A307274FA095E0ACC62BA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_1DF1945D9A5C3546A5E6095E0ACC9013" xlink:to="loc_us-gaap_Goodwill_F76D42C5CC7A307274FA095E0ACC62BA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillForeignCurrencyTranslationGainLoss" xlink:label="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_6A786F70C00787AD2E11095E0ACCCFD2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_1DF1945D9A5C3546A5E6095E0ACC9013" xlink:to="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_6A786F70C00787AD2E11095E0ACCCFD2" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/GoodwillAndIntangibleAssetsIdentifiableIntangibleAssetsDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_675672FB5ACA94175073E0F6911E198E" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_AC45F6CA63720ABC9CD9E0F6911D3572" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_675672FB5ACA94175073E0F6911E198E" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_AC45F6CA63720ABC9CD9E0F6911D3572" 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_E5B6EB8D06934CD48AB7E0F6911D5CF2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_AC45F6CA63720ABC9CD9E0F6911D3572" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_E5B6EB8D06934CD48AB7E0F6911D5CF2" 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_A0E617A5B329A6D4569AE0F6911D8265_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_E5B6EB8D06934CD48AB7E0F6911D5CF2" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_A0E617A5B329A6D4569AE0F6911D8265_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_A0E617A5B329A6D4569AE0F6911D8265" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_E5B6EB8D06934CD48AB7E0F6911D5CF2" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_A0E617A5B329A6D4569AE0F6911D8265" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaap_CustomerRelationshipsMember_A72D5AF3CD9E9B808E8FE0F6911E5FBA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_A0E617A5B329A6D4569AE0F6911D8265" xlink:to="loc_us-gaap_CustomerRelationshipsMember_A72D5AF3CD9E9B808E8FE0F6911E5FBA" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_TradenamesAndTrademarksMember" xlink:label="loc_nx_TradenamesAndTrademarksMember_7F5D064E0B4A05F94E68E0F6911E232C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_A0E617A5B329A6D4569AE0F6911D8265" xlink:to="loc_nx_TradenamesAndTrademarksMember_7F5D064E0B4A05F94E68E0F6911E232C" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_PatentsAndOtherTechnologyMember" xlink:label="loc_nx_PatentsAndOtherTechnologyMember_FAD704DB01A3BC3BE75CE0F6911E8C8B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_A0E617A5B329A6D4569AE0F6911D8265" xlink:to="loc_nx_PatentsAndOtherTechnologyMember_FAD704DB01A3BC3BE75CE0F6911E8C8B" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_Retirementoffullyamortizedintangibleassets" xlink:label="loc_nx_Retirementoffullyamortizedintangibleassets_A1A4B269168463048381E0F6911F68F8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_675672FB5ACA94175073E0F6911E198E" xlink:to="loc_nx_Retirementoffullyamortizedintangibleassets_A1A4B269168463048381E0F6911F68F8" 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_0C50463C160B286CDE8CE0F6911FD089" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_675672FB5ACA94175073E0F6911E198E" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_0C50463C160B286CDE8CE0F6911FD089" 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_0D7C8E34C8B3BE9E3E9EE0F6911F8CA1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_675672FB5ACA94175073E0F6911E198E" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_0D7C8E34C8B3BE9E3E9EE0F6911F8CA1" 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_FC755983C8677EE55971E0F6911FDAAC" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_675672FB5ACA94175073E0F6911E198E" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_FC755983C8677EE55971E0F6911FDAAC" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/GoodwillAndIntangibleAssetsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/IncomeTaxes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/IncomeTaxesDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxExaminationLineItems" xlink:label="loc_us-gaap_IncomeTaxExaminationLineItems_CD642270AF36C8972028FEB441F95E82" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxExaminationTable" xlink:label="loc_us-gaap_IncomeTaxExaminationTable_60522D9B9CFF2A552037FEB441F65875" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_CD642270AF36C8972028FEB441F95E82" xlink:to="loc_us-gaap_IncomeTaxExaminationTable_60522D9B9CFF2A552037FEB441F65875" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityByLocationAxis" xlink:label="loc_dei_EntityByLocationAxis_D48F0C6F4D349E4285C9FEB441F6CAEA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxExaminationTable_60522D9B9CFF2A552037FEB441F65875" xlink:to="loc_dei_EntityByLocationAxis_D48F0C6F4D349E4285C9FEB441F6CAEA" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_LocationDomain" xlink:label="loc_dei_LocationDomain_68C48062528A3401C8AFFEB441F7E81B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_EntityByLocationAxis_D48F0C6F4D349E4285C9FEB441F6CAEA" xlink:to="loc_dei_LocationDomain_68C48062528A3401C8AFFEB441F7E81B_default" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_LocationDomain" xlink:label="loc_dei_LocationDomain_68C48062528A3401C8AFFEB441F7E81B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_EntityByLocationAxis_D48F0C6F4D349E4285C9FEB441F6CAEA" xlink:to="loc_dei_LocationDomain_68C48062528A3401C8AFFEB441F7E81B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_DE" xlink:label="loc_country_DE_A90BE2C5A1C1F75CA5BCFEB441F7C860" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_LocationDomain_68C48062528A3401C8AFFEB441F7E81B" xlink:to="loc_country_DE_A90BE2C5A1C1F75CA5BCFEB441F7C860" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NewAccountingPronouncementEarlyAdoptionAxis" xlink:label="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionAxis_01D024D8FAC5E4E3CAD6FEB441F7A006" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxExaminationTable_60522D9B9CFF2A552037FEB441F65875" xlink:to="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionAxis_01D024D8FAC5E4E3CAD6FEB441F7A006" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NewAccountingPrinciplesEarlyAdoptionMember" xlink:label="loc_us-gaap_NewAccountingPrinciplesEarlyAdoptionMember_AFBF682A9F078BB03D12FEB441F7B7AF_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionAxis_01D024D8FAC5E4E3CAD6FEB441F7A006" xlink:to="loc_us-gaap_NewAccountingPrinciplesEarlyAdoptionMember_AFBF682A9F078BB03D12FEB441F7B7AF_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NewAccountingPrinciplesEarlyAdoptionMember" xlink:label="loc_us-gaap_NewAccountingPrinciplesEarlyAdoptionMember_AFBF682A9F078BB03D12FEB441F7B7AF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionAxis_01D024D8FAC5E4E3CAD6FEB441F7A006" xlink:to="loc_us-gaap_NewAccountingPrinciplesEarlyAdoptionMember_AFBF682A9F078BB03D12FEB441F7B7AF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxAuthorityAxis" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_6BDBBCDC211E6E8B52E5FEB441F8EBD2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxExaminationTable_60522D9B9CFF2A552037FEB441F65875" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_6BDBBCDC211E6E8B52E5FEB441F8EBD2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_1482C3291CD8AF2735EAFEB441F8EF79_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_6BDBBCDC211E6E8B52E5FEB441F8EBD2" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_1482C3291CD8AF2735EAFEB441F8EF79_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_1482C3291CD8AF2735EAFEB441F8EF79" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_6BDBBCDC211E6E8B52E5FEB441F8EBD2" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_1482C3291CD8AF2735EAFEB441F8EF79" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_C96D918C39A75F8C0F59FEB441F82A60" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxExaminationTable_60522D9B9CFF2A552037FEB441F65875" xlink:to="loc_dei_LegalEntityAxis_C96D918C39A75F8C0F59FEB441F82A60" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_81C18858B0FD7DC6D376FEB441F829E3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_C96D918C39A75F8C0F59FEB441F82A60" xlink:to="loc_dei_EntityDomain_81C18858B0FD7DC6D376FEB441F829E3_default" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_81C18858B0FD7DC6D376FEB441F829E3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_C96D918C39A75F8C0F59FEB441F82A60" xlink:to="loc_dei_EntityDomain_81C18858B0FD7DC6D376FEB441F829E3" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_HLPMember" xlink:label="loc_nx_HLPMember_A72745108B6A558C58D9FEB441F950B9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_81C18858B0FD7DC6D376FEB441F829E3" xlink:to="loc_nx_HLPMember_A72745108B6A558C58D9FEB441F950B9" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_ExpectedEffectiveIncomeTaxRateContinuingOperations" xlink:label="loc_nx_ExpectedEffectiveIncomeTaxRateContinuingOperations_EF8942AC47FD1AF371ECFEB441F935E8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_CD642270AF36C8972028FEB441F95E82" xlink:to="loc_nx_ExpectedEffectiveIncomeTaxRateContinuingOperations_EF8942AC47FD1AF371ECFEB441F935E8" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_TaxCutsandJobsActof2017ChangeinTaxRateIncomeTaxExpenseBenefit" xlink:label="loc_nx_TaxCutsandJobsActof2017ChangeinTaxRateIncomeTaxExpenseBenefit_D8E10C9C5D1BDA3CC9FBFEB441F93631" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_CD642270AF36C8972028FEB441F95E82" xlink:to="loc_nx_TaxCutsandJobsActof2017ChangeinTaxRateIncomeTaxExpenseBenefit_D8E10C9C5D1BDA3CC9FBFEB441F93631" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_TaxCutsandJobsActof2017TrueUpOfAccruedTaxes" xlink:label="loc_nx_TaxCutsandJobsActof2017TrueUpOfAccruedTaxes_24CD5A6485CD1EC5A9D0FEB441FA4F22" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_CD642270AF36C8972028FEB441F95E82" xlink:to="loc_nx_TaxCutsandJobsActof2017TrueUpOfAccruedTaxes_24CD5A6485CD1EC5A9D0FEB441FA4F22" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_TaxCutsandJobsActof2017TransitionTaxforAccumulatedForeignEarningsIncomeTaxExpenseBenefit" xlink:label="loc_nx_TaxCutsandJobsActof2017TransitionTaxforAccumulatedForeignEarningsIncomeTaxExpenseBenefit_C924C96CFDD45E2D20BAFEB441FA052F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_CD642270AF36C8972028FEB441F95E82" xlink:to="loc_nx_TaxCutsandJobsActof2017TransitionTaxforAccumulatedForeignEarningsIncomeTaxExpenseBenefit_C924C96CFDD45E2D20BAFEB441FA052F" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_TaxCutsandJobsActof2017ExcessTaxBenefits" xlink:label="loc_nx_TaxCutsandJobsActof2017ExcessTaxBenefits_4CA0CFA9582EBFC142FEFEB441FAB64E" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_CD642270AF36C8972028FEB441F95E82" xlink:to="loc_nx_TaxCutsandJobsActof2017ExcessTaxBenefits_4CA0CFA9582EBFC142FEFEB441FAB64E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_BBD9186F9174E5F75B62FEB441FA3D31" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_CD642270AF36C8972028FEB441F95E82" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_BBD9186F9174E5F75B62FEB441FA3D31" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_B6FA80CE5B862EF3DAF2FEB441FA5E49" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_CD642270AF36C8972028FEB441F95E82" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_B6FA80CE5B862EF3DAF2FEB441FA5E49" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_2A18A449A2CE4AB9B528FEB441FB7E8B" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_CD642270AF36C8972028FEB441F95E82" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_2A18A449A2CE4AB9B528FEB441FB7E8B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationDeductionsOther" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationDeductionsOther_D1B08E65E8EDB52DC01BFEB441FBE2E4" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_CD642270AF36C8972028FEB441F95E82" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationDeductionsOther_D1B08E65E8EDB52DC01BFEB441FBE2E4" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_EffectiveIncomeTaxRateReconciliationImpactofTaxReform" xlink:label="loc_nx_EffectiveIncomeTaxRateReconciliationImpactofTaxReform_ADED00236955E15E4079FEB441FB70B9" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_CD642270AF36C8972028FEB441F95E82" xlink:to="loc_nx_EffectiveIncomeTaxRateReconciliationImpactofTaxReform_ADED00236955E15E4079FEB441FB70B9" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_EffectiveIncomeTaxRateReconciliationStockBasedCompensation" xlink:label="loc_nx_EffectiveIncomeTaxRateReconciliationStockBasedCompensation_1F59EEC5D0848D8D5E55FEB441FBB538" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_CD642270AF36C8972028FEB441F95E82" xlink:to="loc_nx_EffectiveIncomeTaxRateReconciliationStockBasedCompensation_1F59EEC5D0848D8D5E55FEB441FBB538" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationRepatriationOfForeignEarnings" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationRepatriationOfForeignEarnings_0788EB94B73B25F8AB47FEB441FB5623" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_CD642270AF36C8972028FEB441F95E82" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationRepatriationOfForeignEarnings_0788EB94B73B25F8AB47FEB441FB5623" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherReconcilingItemsPercent" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherReconcilingItemsPercent_E22E0CB644CB833BDB78FEB441FB4A10" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_CD642270AF36C8972028FEB441F95E82" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherReconcilingItemsPercent_E22E0CB644CB833BDB78FEB441FB4A10" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseImpairmentLosses" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseImpairmentLosses_7E31048792F789673CB7FEB441FCA8FF" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_CD642270AF36C8972028FEB441F95E82" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseImpairmentLosses_7E31048792F789673CB7FEB441FCA8FF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_8F4BF556360C6FC15AE4FEB441FCF63D" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_CD642270AF36C8972028FEB441F95E82" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_8F4BF556360C6FC15AE4FEB441FCF63D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForeignEarningsRepatriated" xlink:label="loc_us-gaap_ForeignEarningsRepatriated_5C644A63C4D0DB6B17FFFEB441FCEC02" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_CD642270AF36C8972028FEB441F95E82" xlink:to="loc_us-gaap_ForeignEarningsRepatriated_5C644A63C4D0DB6B17FFFEB441FCEC02" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilityForUncertainTaxPositionsNoncurrent" xlink:label="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_B9BEB28D55A13520CC09FEB441FDD1AB" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_CD642270AF36C8972028FEB441F95E82" xlink:to="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_B9BEB28D55A13520CC09FEB441FDD1AB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsValuationAllowance" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_F885D055E92DA3777E57FEB441FDF863" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_CD642270AF36C8972028FEB441F95E82" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_F885D055E92DA3777E57FEB441FDF863" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/IncomeTaxesIncomeTaxTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/Inventories" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/InventoriesDetail" 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_387375A5D393C1710432E0F69331125A" 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_6E367B46A435E359E06AE0F6932F0E9A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_387375A5D393C1710432E0F69331125A" xlink:to="loc_us-gaap_StatementTable_6E367B46A435E359E06AE0F6932F0E9A" 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_AdjustmentsForChangeInAccountingPrincipleAxis" xlink:label="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_3B0309753541EA9991FFE0F6932FAF61" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_6E367B46A435E359E06AE0F6932F0E9A" xlink:to="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_3B0309753541EA9991FFE0F6932FAF61" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ChangeInAccountingPrincipleMember" xlink:label="loc_us-gaap_ChangeInAccountingPrincipleMember_237DC644ADD947926428E0F693303AFC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_3B0309753541EA9991FFE0F6932FAF61" xlink:to="loc_us-gaap_ChangeInAccountingPrincipleMember_237DC644ADD947926428E0F693303AFC_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ChangeInAccountingPrincipleMember" xlink:label="loc_us-gaap_ChangeInAccountingPrincipleMember_237DC644ADD947926428E0F693303AFC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_3B0309753541EA9991FFE0F6932FAF61" xlink:to="loc_us-gaap_ChangeInAccountingPrincipleMember_237DC644ADD947926428E0F693303AFC" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_AsreportedbeforechangetoFIFOMember" xlink:label="loc_nx_AsreportedbeforechangetoFIFOMember_92C470E12462893C40BDE0F69330FAAA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ChangeInAccountingPrincipleMember_237DC644ADD947926428E0F693303AFC" xlink:to="loc_nx_AsreportedbeforechangetoFIFOMember_92C470E12462893C40BDE0F69330FAAA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InventoriesMember" xlink:label="loc_us-gaap_InventoriesMember_E771414DFEDB4FC7E351E0F69330BFF8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ChangeInAccountingPrincipleMember_237DC644ADD947926428E0F693303AFC" xlink:to="loc_us-gaap_InventoriesMember_E771414DFEDB4FC7E351E0F69330BFF8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InventoryNet" xlink:label="loc_us-gaap_InventoryNet_10A3C0177705B606A8B6E0F69331B23B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_387375A5D393C1710432E0F69331125A" xlink:to="loc_us-gaap_InventoryNet_10A3C0177705B606A8B6E0F69331B23B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxLiabilities" xlink:label="loc_us-gaap_DeferredTaxLiabilities_EBFED235E0EF00A87CE0E0F69331BC6D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_387375A5D393C1710432E0F69331125A" xlink:to="loc_us-gaap_DeferredTaxLiabilities_EBFED235E0EF00A87CE0E0F69331BC6D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_B039A47F154ADBD7A1F3E0F69331F941" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_387375A5D393C1710432E0F69331125A" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_B039A47F154ADBD7A1F3E0F69331F941" 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_9AB47EB1F4727DF98E9BE0F693313ED0" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_387375A5D393C1710432E0F69331125A" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_9AB47EB1F4727DF98E9BE0F693313ED0" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/InventoriesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestructuringCostAndReserveLineItems" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_AF2A7FB3CD93FBA8B301E16CD0FDBBD4" 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_7ED242D40785CA895899E16CD0FC25F4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_AF2A7FB3CD93FBA8B301E16CD0FDBBD4" xlink:to="loc_us-gaap_StatementTable_7ED242D40785CA895899E16CD0FC25F4" 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_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_3EFA39FBF3F0FAB63B31E16CD0FC224C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_7ED242D40785CA895899E16CD0FC25F4" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_3EFA39FBF3F0FAB63B31E16CD0FC224C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_7956844DA86B0D431AD6E16CD0FC3F0A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_3EFA39FBF3F0FAB63B31E16CD0FC224C" xlink:to="loc_us-gaap_SegmentDomain_7956844DA86B0D431AD6E16CD0FC3F0A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_7956844DA86B0D431AD6E16CD0FC3F0A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_3EFA39FBF3F0FAB63B31E16CD0FC224C" xlink:to="loc_us-gaap_SegmentDomain_7956844DA86B0D431AD6E16CD0FC3F0A" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_NACabinetComponentsMember" xlink:label="loc_nx_NACabinetComponentsMember_9F3DAC2796D903ACFDE8E16CD0FCE252" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_7956844DA86B0D431AD6E16CD0FC3F0A" xlink:to="loc_nx_NACabinetComponentsMember_9F3DAC2796D903ACFDE8E16CD0FCE252" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_1D3DFA6264BF8162AC75E16CD0FD3749" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_AF2A7FB3CD93FBA8B301E16CD0FDBBD4" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_1D3DFA6264BF8162AC75E16CD0FD3749" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestructuringCosts" xlink:label="loc_us-gaap_RestructuringCosts_693B5DE479287396BD70E16CD0FD0082" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_AF2A7FB3CD93FBA8B301E16CD0FDBBD4" xlink:to="loc_us-gaap_RestructuringCosts_693B5DE479287396BD70E16CD0FD0082" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationSummaryOfProductSalesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProductInformationLineItems" xlink:label="loc_us-gaap_ProductInformationLineItems_754F508500866FAFA8BAE16CD0ED282C" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfProductInformationTable" xlink:label="loc_us-gaap_ScheduleOfProductInformationTable_F7357CC83B3D3E208E86E16CD0E3EDC8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ProductInformationLineItems_754F508500866FAFA8BAE16CD0ED282C" xlink:to="loc_us-gaap_ScheduleOfProductInformationTable_F7357CC83B3D3E208E86E16CD0E3EDC8" 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_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_1D7A14D56F438EE567AEE16CD0E4A92F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfProductInformationTable_F7357CC83B3D3E208E86E16CD0E3EDC8" xlink:to="loc_srt_ConsolidationItemsAxis_1D7A14D56F438EE567AEE16CD0E4A92F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_02B1FDB433202F65C104E16CD0E49C52_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_1D7A14D56F438EE567AEE16CD0E4A92F" xlink:to="loc_srt_ConsolidationItemsDomain_02B1FDB433202F65C104E16CD0E49C52_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_02B1FDB433202F65C104E16CD0E49C52" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_1D7A14D56F438EE567AEE16CD0E4A92F" xlink:to="loc_srt_ConsolidationItemsDomain_02B1FDB433202F65C104E16CD0E49C52" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_0257C52F7662EA849015E16CD0E5AA6B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_02B1FDB433202F65C104E16CD0E49C52" xlink:to="loc_us-gaap_OperatingSegmentsMember_0257C52F7662EA849015E16CD0E5AA6B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CorporateNonSegmentMember" xlink:label="loc_us-gaap_CorporateNonSegmentMember_E63760C870B33979E8BCE16CD0E47BFE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_02B1FDB433202F65C104E16CD0E49C52" xlink:to="loc_us-gaap_CorporateNonSegmentMember_E63760C870B33979E8BCE16CD0E47BFE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_AC92C9D39B15FD4AFF20E16CD0E532B3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfProductInformationTable_F7357CC83B3D3E208E86E16CD0E3EDC8" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_AC92C9D39B15FD4AFF20E16CD0E532B3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_C7139086C6624656C7A6E16CD0E51BBC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_AC92C9D39B15FD4AFF20E16CD0E532B3" xlink:to="loc_us-gaap_SegmentDomain_C7139086C6624656C7A6E16CD0E51BBC_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_C7139086C6624656C7A6E16CD0E51BBC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_AC92C9D39B15FD4AFF20E16CD0E532B3" xlink:to="loc_us-gaap_SegmentDomain_C7139086C6624656C7A6E16CD0E51BBC" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_NAEngineeredComponentsMember" xlink:label="loc_nx_NAEngineeredComponentsMember_7C477AFF2950F7608CE7E16CD0E661D2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_C7139086C6624656C7A6E16CD0E51BBC" xlink:to="loc_nx_NAEngineeredComponentsMember_7C477AFF2950F7608CE7E16CD0E661D2" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_EUEngineeredComponentsMember" xlink:label="loc_nx_EUEngineeredComponentsMember_4DAF3E02AAC5E9C610ACE16CD0E55047" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_C7139086C6624656C7A6E16CD0E51BBC" xlink:to="loc_nx_EUEngineeredComponentsMember_4DAF3E02AAC5E9C610ACE16CD0E55047" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_NACabinetComponentsMember" xlink:label="loc_nx_NACabinetComponentsMember_4C34888252B2AFB05EE4E16CD0E57C92" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_C7139086C6624656C7A6E16CD0E51BBC" xlink:to="loc_nx_NACabinetComponentsMember_4C34888252B2AFB05EE4E16CD0E57C92" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srt_StatementGeographicalAxis_8559C2A95B945C307AC0E16CD0E619FE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfProductInformationTable_F7357CC83B3D3E208E86E16CD0E3EDC8" xlink:to="loc_srt_StatementGeographicalAxis_8559C2A95B945C307AC0E16CD0E619FE" 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_E8C14D09A3C800A29F3AE16CD0E6048F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_8559C2A95B945C307AC0E16CD0E619FE" xlink:to="loc_srt_SegmentGeographicalDomain_E8C14D09A3C800A29F3AE16CD0E6048F_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_E8C14D09A3C800A29F3AE16CD0E6048F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_8559C2A95B945C307AC0E16CD0E619FE" xlink:to="loc_srt_SegmentGeographicalDomain_E8C14D09A3C800A29F3AE16CD0E6048F" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_InternationalMember" xlink:label="loc_nx_InternationalMember_A9A6BDAD6EBF83798036E16CD0E61493" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_E8C14D09A3C800A29F3AE16CD0E6048F" xlink:to="loc_nx_InternationalMember_A9A6BDAD6EBF83798036E16CD0E61493" 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_B44C12A5ECEAED72FC74E16CD0E638FE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_E8C14D09A3C800A29F3AE16CD0E6048F" xlink:to="loc_country_US_B44C12A5ECEAED72FC74E16CD0E638FE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srt_ProductOrServiceAxis_7684E74AC26A9719306AE16CD0E79F6E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfProductInformationTable_F7357CC83B3D3E208E86E16CD0E3EDC8" xlink:to="loc_srt_ProductOrServiceAxis_7684E74AC26A9719306AE16CD0E79F6E" 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_89705D68BDC1F69A2EBAE16CD0E71895_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_7684E74AC26A9719306AE16CD0E79F6E" xlink:to="loc_srt_ProductsAndServicesDomain_89705D68BDC1F69A2EBAE16CD0E71895_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_89705D68BDC1F69A2EBAE16CD0E71895" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_7684E74AC26A9719306AE16CD0E79F6E" xlink:to="loc_srt_ProductsAndServicesDomain_89705D68BDC1F69A2EBAE16CD0E71895" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_NonfenestrationMember" xlink:label="loc_nx_NonfenestrationMember_F8C8DB91E93548A7CEBEE16CD0E7A8BE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_89705D68BDC1F69A2EBAE16CD0E71895" xlink:to="loc_nx_NonfenestrationMember_F8C8DB91E93548A7CEBEE16CD0E7A8BE" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_FenestrationMember" xlink:label="loc_nx_FenestrationMember_15D7E5615CB91D991379E16CD0EC496B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_89705D68BDC1F69A2EBAE16CD0E71895" xlink:to="loc_nx_FenestrationMember_15D7E5615CB91D991379E16CD0EC496B" 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_2594F88FD5A4BD9C7F4BE16CD0ED4041" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ProductInformationLineItems_754F508500866FAFA8BAE16CD0ED282C" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_2594F88FD5A4BD9C7F4BE16CD0ED4041" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/NewAccountingGuidanceAdopted" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/NewAccountingGuidanceAdoptedDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NewAccountingPronouncementEarlyAdoptionLineItems" xlink:label="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionLineItems_E49DB2C95355E06D85D0E0F6925EB8EA" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NewAccountingPronouncementEarlyAdoptionTable" xlink:label="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionTable_6E523590C92409D11056E0F6925D83F7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionLineItems_E49DB2C95355E06D85D0E0F6925EB8EA" xlink:to="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionTable_6E523590C92409D11056E0F6925D83F7" 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_AdjustmentsForChangeInAccountingPrincipleAxis" xlink:label="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_372807D2C75E40CBDD4EE0F6925D99D4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionTable_6E523590C92409D11056E0F6925D83F7" xlink:to="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_372807D2C75E40CBDD4EE0F6925D99D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ChangeInAccountingPrincipleMember" xlink:label="loc_us-gaap_ChangeInAccountingPrincipleMember_A09F3A684D089141BE2EE0F6925DFF84_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_372807D2C75E40CBDD4EE0F6925D99D4" xlink:to="loc_us-gaap_ChangeInAccountingPrincipleMember_A09F3A684D089141BE2EE0F6925DFF84_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ChangeInAccountingPrincipleMember" xlink:label="loc_us-gaap_ChangeInAccountingPrincipleMember_A09F3A684D089141BE2EE0F6925DFF84" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_372807D2C75E40CBDD4EE0F6925D99D4" xlink:to="loc_us-gaap_ChangeInAccountingPrincipleMember_A09F3A684D089141BE2EE0F6925DFF84" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountingStandardsUpdate201707Member" xlink:label="loc_us-gaap_AccountingStandardsUpdate201707Member_266D9D28E93D0627BE6FE0F6925ED875" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ChangeInAccountingPrincipleMember_A09F3A684D089141BE2EE0F6925DFF84" xlink:to="loc_us-gaap_AccountingStandardsUpdate201707Member_266D9D28E93D0627BE6FE0F6925ED875" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NewAccountingPronouncementEarlyAdoptionAxis" xlink:label="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionAxis_6F816AFFDB244E43E01FE0F6925EAD19" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionTable_6E523590C92409D11056E0F6925D83F7" xlink:to="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionAxis_6F816AFFDB244E43E01FE0F6925EAD19" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NewAccountingPrinciplesEarlyAdoptionMember" xlink:label="loc_us-gaap_NewAccountingPrinciplesEarlyAdoptionMember_82A60315C4BB43E145C6E0F6925E30E0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionAxis_6F816AFFDB244E43E01FE0F6925EAD19" xlink:to="loc_us-gaap_NewAccountingPrinciplesEarlyAdoptionMember_82A60315C4BB43E145C6E0F6925E30E0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NewAccountingPrinciplesEarlyAdoptionMember" xlink:label="loc_us-gaap_NewAccountingPrinciplesEarlyAdoptionMember_82A60315C4BB43E145C6E0F6925E30E0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionAxis_6F816AFFDB244E43E01FE0F6925EAD19" xlink:to="loc_us-gaap_NewAccountingPrinciplesEarlyAdoptionMember_82A60315C4BB43E145C6E0F6925E30E0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CostOfRevenue" xlink:label="loc_us-gaap_CostOfGoodsSold_B12FCF6A7521F5B33EFAE0F6925ECB3E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionLineItems_E49DB2C95355E06D85D0E0F6925EB8EA" xlink:to="loc_us-gaap_CostOfGoodsSold_B12FCF6A7521F5B33EFAE0F6925ECB3E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_8999A9B3CD1139C169ADE0F6925F0229" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionLineItems_E49DB2C95355E06D85D0E0F6925EB8EA" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_8999A9B3CD1139C169ADE0F6925F0229" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/OtherIncomeExpense" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/OtherIncomeExpenseDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/OtherIncomeExpenseTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/RetirementPlans" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/RetirementPlansDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/RetirementPlansTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/SegmentInformationDetails" 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_9587CF903E5633DA31CCE0F69132A73C" 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_736617A4194FBFBAF5FDE0F69130A39A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_9587CF903E5633DA31CCE0F69132A73C" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_736617A4194FBFBAF5FDE0F69130A39A" 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_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_16A47799518AF2D30958E0F6913082C8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_736617A4194FBFBAF5FDE0F69130A39A" xlink:to="loc_srt_ConsolidationItemsAxis_16A47799518AF2D30958E0F6913082C8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_9FB4267959E866AFBB63E0F69130C9BB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_16A47799518AF2D30958E0F6913082C8" xlink:to="loc_srt_ConsolidationItemsDomain_9FB4267959E866AFBB63E0F69130C9BB_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_9FB4267959E866AFBB63E0F69130C9BB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_16A47799518AF2D30958E0F6913082C8" xlink:to="loc_srt_ConsolidationItemsDomain_9FB4267959E866AFBB63E0F69130C9BB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_40F798B5249CB8AF65B4E0F6913051A6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_9FB4267959E866AFBB63E0F69130C9BB" xlink:to="loc_us-gaap_OperatingSegmentsMember_40F798B5249CB8AF65B4E0F6913051A6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CorporateNonSegmentMember" xlink:label="loc_us-gaap_CorporateNonSegmentMember_47C42550F84C1F6B874AE0F691315CCB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_9FB4267959E866AFBB63E0F69130C9BB" xlink:to="loc_us-gaap_CorporateNonSegmentMember_47C42550F84C1F6B874AE0F691315CCB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_B1A9A9D9B80B76A7B10CE0F69131E21D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_736617A4194FBFBAF5FDE0F69130A39A" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_B1A9A9D9B80B76A7B10CE0F69131E21D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_78F54CE3B801B3FDD944E0F69131C9BC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_B1A9A9D9B80B76A7B10CE0F69131E21D" xlink:to="loc_us-gaap_SegmentDomain_78F54CE3B801B3FDD944E0F69131C9BC_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_78F54CE3B801B3FDD944E0F69131C9BC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_B1A9A9D9B80B76A7B10CE0F69131E21D" xlink:to="loc_us-gaap_SegmentDomain_78F54CE3B801B3FDD944E0F69131C9BC" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_NAEngineeredComponentsMember" xlink:label="loc_nx_NAEngineeredComponentsMember_582D09AA30CD6E614039E0F691319435" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_78F54CE3B801B3FDD944E0F69131C9BC" xlink:to="loc_nx_NAEngineeredComponentsMember_582D09AA30CD6E614039E0F691319435" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_EUEngineeredComponentsMember" xlink:label="loc_nx_EUEngineeredComponentsMember_6B0F88B02762A6CF5E58E0F691328DE9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_78F54CE3B801B3FDD944E0F69131C9BC" xlink:to="loc_nx_EUEngineeredComponentsMember_6B0F88B02762A6CF5E58E0F691328DE9" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_NACabinetComponentsMember" xlink:label="loc_nx_NACabinetComponentsMember_1E4A7C385F6CF213E385E0F691324C11" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_78F54CE3B801B3FDD944E0F69131C9BC" xlink:to="loc_nx_NACabinetComponentsMember_1E4A7C385F6CF213E385E0F691324C11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NumberOfReportableSegments" xlink:label="loc_us-gaap_NumberOfReportableSegments_9980B4C561E9B984629AE0F69132BFA8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_9587CF903E5633DA31CCE0F69132A73C" xlink:to="loc_us-gaap_NumberOfReportableSegments_9980B4C561E9B984629AE0F69132BFA8" 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_BA58F4C3A5A14A53E64CE0F691325F33" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_9587CF903E5633DA31CCE0F69132A73C" xlink:to="loc_us-gaap_NumberOfOperatingSegments_BA58F4C3A5A14A53E64CE0F691325F33" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_4754DBB9E989B876B686E0F691326934" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_9587CF903E5633DA31CCE0F69132A73C" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_4754DBB9E989B876B686E0F691326934" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/SegmentInformationGoodwillBySegmentDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillLineItems" xlink:label="loc_us-gaap_GoodwillLineItems_76637527CF1D6FDA79C5E0F6911749BB" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfGoodwillTable" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_C0016F772AC2840E485BE0F691147706" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_76637527CF1D6FDA79C5E0F6911749BB" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_C0016F772AC2840E485BE0F691147706" 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_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_F7161CBCCE7EEEAF05F1E0F69115003B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_C0016F772AC2840E485BE0F691147706" xlink:to="loc_srt_ConsolidationItemsAxis_F7161CBCCE7EEEAF05F1E0F69115003B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_BB76B7A9199425979D52E0F69115F391_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_F7161CBCCE7EEEAF05F1E0F69115003B" xlink:to="loc_srt_ConsolidationItemsDomain_BB76B7A9199425979D52E0F69115F391_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_BB76B7A9199425979D52E0F69115F391" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_F7161CBCCE7EEEAF05F1E0F69115003B" xlink:to="loc_srt_ConsolidationItemsDomain_BB76B7A9199425979D52E0F69115F391" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_E4939D4631407F866AC3E0F69115B375" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_BB76B7A9199425979D52E0F69115F391" xlink:to="loc_us-gaap_OperatingSegmentsMember_E4939D4631407F866AC3E0F69115B375" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CorporateNonSegmentMember" xlink:label="loc_us-gaap_CorporateNonSegmentMember_117BE06060ABEA77D371E0F691164DDF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_BB76B7A9199425979D52E0F69115F391" xlink:to="loc_us-gaap_CorporateNonSegmentMember_117BE06060ABEA77D371E0F691164DDF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_73C4A83AE47D0018ADC2E0F691166211" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_C0016F772AC2840E485BE0F691147706" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_73C4A83AE47D0018ADC2E0F691166211" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_DFA0A2AF6F6C887B0879E0F69116BDD1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_73C4A83AE47D0018ADC2E0F691166211" xlink:to="loc_us-gaap_SegmentDomain_DFA0A2AF6F6C887B0879E0F69116BDD1_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_DFA0A2AF6F6C887B0879E0F69116BDD1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_73C4A83AE47D0018ADC2E0F691166211" xlink:to="loc_us-gaap_SegmentDomain_DFA0A2AF6F6C887B0879E0F69116BDD1" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_NAEngineeredComponentsMember" xlink:label="loc_nx_NAEngineeredComponentsMember_0F017BC85C7FF1209D64E0F69116B84F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_DFA0A2AF6F6C887B0879E0F69116BDD1" xlink:to="loc_nx_NAEngineeredComponentsMember_0F017BC85C7FF1209D64E0F69116B84F" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_EUEngineeredComponentsMember" xlink:label="loc_nx_EUEngineeredComponentsMember_AF2E8D0C1CAA7A39BD71E0F69117E8A9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_DFA0A2AF6F6C887B0879E0F69116BDD1" xlink:to="loc_nx_EUEngineeredComponentsMember_AF2E8D0C1CAA7A39BD71E0F69117E8A9" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_NACabinetComponentsMember" xlink:label="loc_nx_NACabinetComponentsMember_BC41EB712E0CBFE675CCE0F69117E3CC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_DFA0A2AF6F6C887B0879E0F69116BDD1" xlink:to="loc_nx_NACabinetComponentsMember_BC41EB712E0CBFE675CCE0F69117E3CC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetImpairmentCharges" xlink:label="loc_us-gaap_AssetImpairmentCharges_358B2440524E8E9DC3E4E0F69117E1A8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_76637527CF1D6FDA79C5E0F6911749BB" xlink:to="loc_us-gaap_AssetImpairmentCharges_358B2440524E8E9DC3E4E0F69117E1A8" 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_FAE8E27217444105D20DE0F6911790A5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_76637527CF1D6FDA79C5E0F6911749BB" xlink:to="loc_us-gaap_Goodwill_FAE8E27217444105D20DE0F6911790A5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillForeignCurrencyTranslationGainLoss" xlink:label="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_3D3ABCB340DDB38B4599E0F69118EAF7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_76637527CF1D6FDA79C5E0F6911749BB" xlink:to="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_3D3ABCB340DDB38B4599E0F69118EAF7" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/SegmentInformationNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/SegmentInformationReconcilliationOfOperatingLossToNetIncomeDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/SegmentInformationSegmentReportingInformationDetails" 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_005C3A6F778A1BEE1A70E0F691D7EDDB" 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_D322063AC8D44A8B013FE0F691D45158" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_005C3A6F778A1BEE1A70E0F691D7EDDB" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_D322063AC8D44A8B013FE0F691D45158" 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_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_C477AA539E726CF537EAE0F691D53F45" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_D322063AC8D44A8B013FE0F691D45158" xlink:to="loc_srt_ConsolidationItemsAxis_C477AA539E726CF537EAE0F691D53F45" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_205DAE9D0473EE7611D9E0F691D5377B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_C477AA539E726CF537EAE0F691D53F45" xlink:to="loc_srt_ConsolidationItemsDomain_205DAE9D0473EE7611D9E0F691D5377B_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_205DAE9D0473EE7611D9E0F691D5377B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_C477AA539E726CF537EAE0F691D53F45" xlink:to="loc_srt_ConsolidationItemsDomain_205DAE9D0473EE7611D9E0F691D5377B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_23B26F2BC3FA22C53809E0F691D54019" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_205DAE9D0473EE7611D9E0F691D5377B" xlink:to="loc_us-gaap_OperatingSegmentsMember_23B26F2BC3FA22C53809E0F691D54019" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CorporateNonSegmentMember" xlink:label="loc_us-gaap_CorporateNonSegmentMember_8A698430A513E3ECAA3AE0F691D609ED" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_205DAE9D0473EE7611D9E0F691D5377B" xlink:to="loc_us-gaap_CorporateNonSegmentMember_8A698430A513E3ECAA3AE0F691D609ED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_916B09A010551F137B3BE0F691D60AB3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_D322063AC8D44A8B013FE0F691D45158" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_916B09A010551F137B3BE0F691D60AB3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_9D04ACAC889BE0A7D532E0F691D612EE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_916B09A010551F137B3BE0F691D60AB3" xlink:to="loc_us-gaap_SegmentDomain_9D04ACAC889BE0A7D532E0F691D612EE_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_9D04ACAC889BE0A7D532E0F691D612EE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_916B09A010551F137B3BE0F691D60AB3" xlink:to="loc_us-gaap_SegmentDomain_9D04ACAC889BE0A7D532E0F691D612EE" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_NAEngineeredComponentsMember" xlink:label="loc_nx_NAEngineeredComponentsMember_41127E711AEBB8026D0AE0F691D608A8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9D04ACAC889BE0A7D532E0F691D612EE" xlink:to="loc_nx_NAEngineeredComponentsMember_41127E711AEBB8026D0AE0F691D608A8" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_EUEngineeredComponentsMember" xlink:label="loc_nx_EUEngineeredComponentsMember_3EE989AD625C39236C8FE0F691D68B06" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9D04ACAC889BE0A7D532E0F691D612EE" xlink:to="loc_nx_EUEngineeredComponentsMember_3EE989AD625C39236C8FE0F691D68B06" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_NACabinetComponentsMember" xlink:label="loc_nx_NACabinetComponentsMember_B65C48311057F7A48BD0E0F691D72E21" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9D04ACAC889BE0A7D532E0F691D612EE" xlink:to="loc_nx_NACabinetComponentsMember_B65C48311057F7A48BD0E0F691D72E21" 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_SalesRevenueGoodsNet_EF54FA5A3CC50388235BE0F691D79F67" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_005C3A6F778A1BEE1A70E0F691D7EDDB" xlink:to="loc_us-gaap_SalesRevenueGoodsNet_EF54FA5A3CC50388235BE0F691D79F67" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_Reductionincorporateallocation" xlink:label="loc_nx_Reductionincorporateallocation_7EDEA6AF5B65E1589955E0F691D7A13E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_005C3A6F778A1BEE1A70E0F691D7EDDB" xlink:to="loc_nx_Reductionincorporateallocation_7EDEA6AF5B65E1589955E0F691D7A13E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_5F5C429AFCA6E6C588D4E0F691D7DA00" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_005C3A6F778A1BEE1A70E0F691D7EDDB" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_5F5C429AFCA6E6C588D4E0F691D7DA00" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_829C267E4EEE33EFEA0EE0F691D8EB2E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_005C3A6F778A1BEE1A70E0F691D7EDDB" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_829C267E4EEE33EFEA0EE0F691D8EB2E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaap_OperatingIncomeLoss_2CF65E5E576FFA6D21D0E0F691D81673" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_005C3A6F778A1BEE1A70E0F691D7EDDB" xlink:to="loc_us-gaap_OperatingIncomeLoss_2CF65E5E576FFA6D21D0E0F691D81673" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_379F55AA0B304CC88F71E0F691D87085" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_005C3A6F778A1BEE1A70E0F691D7EDDB" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_379F55AA0B304CC88F71E0F691D87085" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_44F0C216836B8218BE24E0F691D89389" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_005C3A6F778A1BEE1A70E0F691D7EDDB" xlink:to="loc_us-gaap_Assets_44F0C216836B8218BE24E0F691D89389" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/SegmentInformationTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensationDetail" 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_F853F045B96126ABFB15E0F6933CC755" 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_C917E06C0C055F7F6649E0F6933B54B9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_F853F045B96126ABFB15E0F6933CC755" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_C917E06C0C055F7F6649E0F6933B54B9" 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_779C7C275BD1EDF0E321E0F6933BDC7D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_C917E06C0C055F7F6649E0F6933B54B9" xlink:to="loc_us-gaap_AwardTypeAxis_779C7C275BD1EDF0E321E0F6933BDC7D" 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_C06CC8564C9CCE0D8B76E0F6933C7B3A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_779C7C275BD1EDF0E321E0F6933BDC7D" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_C06CC8564C9CCE0D8B76E0F6933C7B3A_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_C06CC8564C9CCE0D8B76E0F6933C7B3A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_779C7C275BD1EDF0E321E0F6933BDC7D" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_C06CC8564C9CCE0D8B76E0F6933C7B3A" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_DocumentPeriodEndDate" xlink:label="loc_dei_DocumentPeriodEndDate_5B411C9B3BFD067D34BDE0F6933C62B3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_F853F045B96126ABFB15E0F6933CC755" xlink:to="loc_dei_DocumentPeriodEndDate_5B411C9B3BFD067D34BDE0F6933C62B3" 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_8A295253DF62CB235EDBE0F6933C68B6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_F853F045B96126ABFB15E0F6933CC755" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_8A295253DF62CB235EDBE0F6933C68B6" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensationPerformanceRestrictedStockUnitsDetails" 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_A4D55A1A68867DBAA23EE0F69312577B" 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_D27EBF32F2B6EC62B97DE0F6930E80C7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_A4D55A1A68867DBAA23EE0F69312577B" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_D27EBF32F2B6EC62B97DE0F6930E80C7" 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_35E4FC6F71F5905E19D0E0F6930E7CBD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_D27EBF32F2B6EC62B97DE0F6930E80C7" xlink:to="loc_us-gaap_AwardTypeAxis_35E4FC6F71F5905E19D0E0F6930E7CBD" 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_124C44893D1A0C3845ADE0F6930F30B9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_35E4FC6F71F5905E19D0E0F6930E7CBD" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_124C44893D1A0C3845ADE0F6930F30B9_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_124C44893D1A0C3845ADE0F6930F30B9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_35E4FC6F71F5905E19D0E0F6930E7CBD" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_124C44893D1A0C3845ADE0F6930F30B9" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_PerformanceRestrictedStockUnitsMember" xlink:label="loc_nx_PerformanceRestrictedStockUnitsMember_82DDBD4DF49507DCF1F4E0F6930F9231" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_124C44893D1A0C3845ADE0F6930F30B9" xlink:to="loc_nx_PerformanceRestrictedStockUnitsMember_82DDBD4DF49507DCF1F4E0F6930F9231" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_636727AE525E35B6EAC5E0F6930F82A2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_D27EBF32F2B6EC62B97DE0F6930E80C7" xlink:to="loc_srt_RangeAxis_636727AE525E35B6EAC5E0F6930F82A2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_07E6EE913E31BFC7A6C4E0F6930F77C3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_636727AE525E35B6EAC5E0F6930F82A2" xlink:to="loc_srt_RangeMember_07E6EE913E31BFC7A6C4E0F6930F77C3_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_07E6EE913E31BFC7A6C4E0F6930F77C3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_636727AE525E35B6EAC5E0F6930F82A2" xlink:to="loc_srt_RangeMember_07E6EE913E31BFC7A6C4E0F6930F77C3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_9BC75DAE97FFA1A68041E0F69310621E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_07E6EE913E31BFC7A6C4E0F6930F77C3" xlink:to="loc_srt_MinimumMember_9BC75DAE97FFA1A68041E0F69310621E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_29ACAED4934596534290E0F693104EF4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_07E6EE913E31BFC7A6C4E0F6930F77C3" xlink:to="loc_srt_MaximumMember_29ACAED4934596534290E0F693104EF4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VestingAxis" xlink:label="loc_us-gaap_VestingAxis_6BA9C5D70A92AE1B48E9E0F69310F712" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_D27EBF32F2B6EC62B97DE0F6930E80C7" xlink:to="loc_us-gaap_VestingAxis_6BA9C5D70A92AE1B48E9E0F69310F712" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VestingDomain" xlink:label="loc_us-gaap_VestingDomain_7F6D30015D6F1AC99A82E0F693104FD5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VestingAxis_6BA9C5D70A92AE1B48E9E0F69310F712" xlink:to="loc_us-gaap_VestingDomain_7F6D30015D6F1AC99A82E0F693104FD5_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VestingDomain" xlink:label="loc_us-gaap_VestingDomain_7F6D30015D6F1AC99A82E0F693104FD5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VestingAxis_6BA9C5D70A92AE1B48E9E0F69310F712" xlink:to="loc_us-gaap_VestingDomain_7F6D30015D6F1AC99A82E0F693104FD5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationAwardTrancheOneMember" xlink:label="loc_us-gaap_ShareBasedCompensationAwardTrancheOneMember_9B1F9B03B8DD980C9F0AE0F693112C27" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_7F6D30015D6F1AC99A82E0F693104FD5" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheOneMember_9B1F9B03B8DD980C9F0AE0F693112C27" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationAwardTrancheTwoMember" xlink:label="loc_us-gaap_ShareBasedCompensationAwardTrancheTwoMember_5496EE0DDD7A41F4A7C2E0F69311A817" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_7F6D30015D6F1AC99A82E0F693104FD5" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheTwoMember_5496EE0DDD7A41F4A7C2E0F69311A817" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationAwardTrancheThreeMember" xlink:label="loc_us-gaap_ShareBasedCompensationAwardTrancheThreeMember_C194F9276E045948544FE0F69311AF7D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_7F6D30015D6F1AC99A82E0F693104FD5" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheThreeMember_C194F9276E045948544FE0F69311AF7D" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_ShareBasedCompensationAwardTrancheFourMember" xlink:label="loc_nx_ShareBasedCompensationAwardTrancheFourMember_2F3B70664A92C35CDD03E0F69311E748" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_7F6D30015D6F1AC99A82E0F693104FD5" xlink:to="loc_nx_ShareBasedCompensationAwardTrancheFourMember_2F3B70664A92C35CDD03E0F69311E748" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_ShareBasedCompensationAwardPerformanceCriteriaAxis" xlink:label="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAxis_4FD6032B0C8606CC915AE0F69311ACC6" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_D27EBF32F2B6EC62B97DE0F6930E80C7" xlink:to="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAxis_4FD6032B0C8606CC915AE0F69311ACC6" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_ShareBasedCompensationAwardPerformanceCriteriaDomain" xlink:label="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaDomain_2DB81919B2BB3D237D09E0F69312B470_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAxis_4FD6032B0C8606CC915AE0F69311ACC6" xlink:to="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaDomain_2DB81919B2BB3D237D09E0F69312B470_default" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_ShareBasedCompensationAwardPerformanceCriteriaDomain" xlink:label="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaDomain_2DB81919B2BB3D237D09E0F69312B470" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAxis_4FD6032B0C8606CC915AE0F69311ACC6" xlink:to="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaDomain_2DB81919B2BB3D237D09E0F69312B470" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesGreaterThanOrEqualTo50PercentMember" xlink:label="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesGreaterThanOrEqualTo50PercentMember_2B5D4350BCC332FF3CD1E0F693126C85" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaDomain_2DB81919B2BB3D237D09E0F69312B470" xlink:to="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesGreaterThanOrEqualTo50PercentMember_2B5D4350BCC332FF3CD1E0F693126C85" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesLessThan50PercentAndGreaterThanOrEqualTo20PercentMember" xlink:label="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesLessThan50PercentAndGreaterThanOrEqualTo20PercentMember_5C3B36A1F470ADA8E4A1E0F69312EF00" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaDomain_2DB81919B2BB3D237D09E0F69312B470" xlink:to="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesLessThan50PercentAndGreaterThanOrEqualTo20PercentMember_5C3B36A1F470ADA8E4A1E0F69312EF00" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesLessThan20PercentAndGreaterThanOrEqualToNegative20PercentMember" xlink:label="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesLessThan20PercentAndGreaterThanOrEqualToNegative20PercentMember_798CF288E168DF7746FFE0F69312953A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaDomain_2DB81919B2BB3D237D09E0F69312B470" xlink:to="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesLessThan20PercentAndGreaterThanOrEqualToNegative20PercentMember_798CF288E168DF7746FFE0F69312953A" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesLessThanNegative20PercentMember" xlink:label="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesLessThanNegative20PercentMember_93774CCB087B3C16EC0BE0F69312C327" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaDomain_2DB81919B2BB3D237D09E0F69312B470" xlink:to="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesLessThanNegative20PercentMember_93774CCB087B3C16EC0BE0F69312C327" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage_62F98DD050A20A308994E0F693138400" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_A4D55A1A68867DBAA23EE0F69312577B" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage_62F98DD050A20A308994E0F693138400" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted_61C58BB086D3363C685DE0F693136653" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_A4D55A1A68867DBAA23EE0F69312577B" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted_61C58BB086D3363C685DE0F693136653" 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_3F1B7A32557D0C2EEEECE0F69313E144" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_A4D55A1A68867DBAA23EE0F69312577B" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_3F1B7A32557D0C2EEEECE0F69313E144" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsForfeitures" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsForfeitures_1845C859E83AA9F46982E0F69313631C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_A4D55A1A68867DBAA23EE0F69312577B" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsForfeitures_1845C859E83AA9F46982E0F69313631C" 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_00C803B1AB791AFD7A02E0F693130F4D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_A4D55A1A68867DBAA23EE0F69312577B" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_00C803B1AB791AFD7A02E0F693130F4D" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensationPerformanceShareAwardsDetails" 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_37807BA986A9B37E022FE0F6915B8962" 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_FB8DEF8378D0EDD9814BE0F69159675E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_37807BA986A9B37E022FE0F6915B8962" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_FB8DEF8378D0EDD9814BE0F69159675E" 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_AwardDateAxis" xlink:label="loc_us-gaap_AwardDateAxis_4DBED6B6449517C4EA57E0F6915903B2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_FB8DEF8378D0EDD9814BE0F69159675E" xlink:to="loc_us-gaap_AwardDateAxis_4DBED6B6449517C4EA57E0F6915903B2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AwardDateDomain" xlink:label="loc_us-gaap_AwardDateDomain_B6FD136329D96FFE1B50E0F69159DC6F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardDateAxis_4DBED6B6449517C4EA57E0F6915903B2" xlink:to="loc_us-gaap_AwardDateDomain_B6FD136329D96FFE1B50E0F69159DC6F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AwardDateDomain" xlink:label="loc_us-gaap_AwardDateDomain_B6FD136329D96FFE1B50E0F69159DC6F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardDateAxis_4DBED6B6449517C4EA57E0F6915903B2" xlink:to="loc_us-gaap_AwardDateDomain_B6FD136329D96FFE1B50E0F69159DC6F" 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_78F57AC1DD1B18EE1B32E0F69159B53A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_FB8DEF8378D0EDD9814BE0F69159675E" xlink:to="loc_us-gaap_AwardTypeAxis_78F57AC1DD1B18EE1B32E0F69159B53A" 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_5E20861C0861373093FAE0F6915A033B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_78F57AC1DD1B18EE1B32E0F69159B53A" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_5E20861C0861373093FAE0F6915A033B_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_5E20861C0861373093FAE0F6915A033B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_78F57AC1DD1B18EE1B32E0F69159B53A" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_5E20861C0861373093FAE0F6915A033B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PerformanceSharesMember" xlink:label="loc_us-gaap_PerformanceSharesMember_0BC3B3A724D8FD7C1780E0F6915A89CE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_5E20861C0861373093FAE0F6915A033B" xlink:to="loc_us-gaap_PerformanceSharesMember_0BC3B3A724D8FD7C1780E0F6915A89CE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_EA682E8799C649239126E0F6915ABCB9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_FB8DEF8378D0EDD9814BE0F69159675E" xlink:to="loc_srt_RangeAxis_EA682E8799C649239126E0F6915ABCB9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_7B69A8BFB144F8A19AA3E0F6915AE26D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_EA682E8799C649239126E0F6915ABCB9" xlink:to="loc_srt_RangeMember_7B69A8BFB144F8A19AA3E0F6915AE26D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_7B69A8BFB144F8A19AA3E0F6915AE26D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_EA682E8799C649239126E0F6915ABCB9" xlink:to="loc_srt_RangeMember_7B69A8BFB144F8A19AA3E0F6915AE26D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_0277EA7ED63876709089E0F6915B56E3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_7B69A8BFB144F8A19AA3E0F6915AE26D" xlink:to="loc_srt_MinimumMember_0277EA7ED63876709089E0F6915B56E3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_25C06107D00B02F3DA30E0F6915B8CB5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_7B69A8BFB144F8A19AA3E0F6915AE26D" xlink:to="loc_srt_MaximumMember_25C06107D00B02F3DA30E0F6915B8CB5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_676CE83BA3E293D04D3AE0F6915BB004" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_37807BA986A9B37E022FE0F6915B8962" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_676CE83BA3E293D04D3AE0F6915BB004" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_PerformanceSharesSettledinCash" xlink:label="loc_nx_PerformanceSharesSettledinCash_595960911ADADAB546BCE0F6915B06E7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_37807BA986A9B37E022FE0F6915B8962" xlink:to="loc_nx_PerformanceSharesSettledinCash_595960911ADADAB546BCE0F6915B06E7" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_PerformanceSharesSettledinStock" xlink:label="loc_nx_PerformanceSharesSettledinStock_44170BF974E487A13F2FE0F6915CB749" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_37807BA986A9B37E022FE0F6915B8962" xlink:to="loc_nx_PerformanceSharesSettledinStock_44170BF974E487A13F2FE0F6915CB749" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted_FCEDCC05EC890C682BBBE0F6915C77E3" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_37807BA986A9B37E022FE0F6915B8962" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted_FCEDCC05EC890C682BBBE0F6915C77E3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage_725C88B9D38E6689BC8DE0F6915CDB48" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_37807BA986A9B37E022FE0F6915B8962" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage_725C88B9D38E6689BC8DE0F6915CDB48" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_December2015PerformanceSharesProbabletoVest" xlink:label="loc_nx_December2015PerformanceSharesProbabletoVest_81317152E62C57BD5037E0F6915CF1B4" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_37807BA986A9B37E022FE0F6915B8962" xlink:to="loc_nx_December2015PerformanceSharesProbabletoVest_81317152E62C57BD5037E0F6915CF1B4" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_January2016PerformanceSharesProbabletoVest" xlink:label="loc_nx_January2016PerformanceSharesProbabletoVest_E0FDB486EA6D7F3248C0E0F6915C86EF" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_37807BA986A9B37E022FE0F6915B8962" xlink:to="loc_nx_January2016PerformanceSharesProbabletoVest_E0FDB486EA6D7F3248C0E0F6915C86EF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsForfeitures" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsForfeitures_CB669F384874490D6069E0F6915CCD54" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_37807BA986A9B37E022FE0F6915B8962" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsForfeitures_CB669F384874490D6069E0F6915CCD54" 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_4A0BF9828556B8B231F9E0F6915DBFAD" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_37807BA986A9B37E022FE0F6915B8962" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_4A0BF9828556B8B231F9E0F6915DBFAD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber_BF144858EDFBA6727B9CE0F6915DA40F" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_37807BA986A9B37E022FE0F6915B8962" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber_BF144858EDFBA6727B9CE0F6915DA40F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EarningsPerShareBasicAndDiluted" xlink:label="loc_us-gaap_EarningsPerShareBasicAndDiluted_973F78B78E6E62833130E0F6915D21DB" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_37807BA986A9B37E022FE0F6915B8962" xlink:to="loc_us-gaap_EarningsPerShareBasicAndDiluted_973F78B78E6E62833130E0F6915D21DB" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_RelativeTotalShareReturn" xlink:label="loc_nx_RelativeTotalShareReturn_28858008219E5177349AE0F6915D54BD" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_37807BA986A9B37E022FE0F6915B8962" xlink:to="loc_nx_RelativeTotalShareReturn_28858008219E5177349AE0F6915D54BD" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_ReturnOnNetAssets" xlink:label="loc_nx_ReturnOnNetAssets_54F42970B7B2FA03B97CE0F6915D6780" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_37807BA986A9B37E022FE0F6915B8962" xlink:to="loc_nx_ReturnOnNetAssets_54F42970B7B2FA03B97CE0F6915D6780" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensationRestrictedStockAwardsDetails" 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_947869FC0C34475A3333E0F6922E3C8D" 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_8434474F9D8AD7AA881BE0F6922D43D5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_947869FC0C34475A3333E0F6922E3C8D" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_8434474F9D8AD7AA881BE0F6922D43D5" 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_9357593B11C58E14E902E0F6922D4985" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_8434474F9D8AD7AA881BE0F6922D43D5" xlink:to="loc_us-gaap_AwardTypeAxis_9357593B11C58E14E902E0F6922D4985" 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_A1312A6C6962059BB096E0F6922D1893_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_9357593B11C58E14E902E0F6922D4985" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_A1312A6C6962059BB096E0F6922D1893_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_A1312A6C6962059BB096E0F6922D1893" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_9357593B11C58E14E902E0F6922D4985" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_A1312A6C6962059BB096E0F6922D1893" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_C1BF4EE0F8D658969236E0F6922EA51F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_A1312A6C6962059BB096E0F6922D1893" xlink:to="loc_us-gaap_RestrictedStockMember_C1BF4EE0F8D658969236E0F6922EA51F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_77E9C8E937E71ACC5D40E0F6922E9CFF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_947869FC0C34475A3333E0F6922E3C8D" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_77E9C8E937E71ACC5D40E0F6922E9CFF" 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_BD16B8D4DFC09BD72D37E0F6922ED354" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_77E9C8E937E71ACC5D40E0F6922E9CFF" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_BD16B8D4DFC09BD72D37E0F6922ED354" 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_10C1B3354B947E80BBBBE0F6922F3B27" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_77E9C8E937E71ACC5D40E0F6922E9CFF" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_10C1B3354B947E80BBBBE0F6922F3B27" 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_57506F8E660146D5C990E0F6922FED60" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_77E9C8E937E71ACC5D40E0F6922E9CFF" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_57506F8E660146D5C990E0F6922FED60" 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_EE94813B97EB74A33B2BE0F6922F1737" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_77E9C8E937E71ACC5D40E0F6922E9CFF" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_EE94813B97EB74A33B2BE0F6922F1737" 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_9D54412A9AC7E1F2E541E0F6922F4F94" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_947869FC0C34475A3333E0F6922E3C8D" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_9D54412A9AC7E1F2E541E0F6922F4F94" 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_F538EDF73FA37496AD2EE0F692302A55" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_9D54412A9AC7E1F2E541E0F6922F4F94" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_F538EDF73FA37496AD2EE0F692302A55" 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_0828875ACE3EC6A9149AE0F692300420" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_9D54412A9AC7E1F2E541E0F6922F4F94" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_0828875ACE3EC6A9149AE0F692300420" 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_D81777B5E1ADA8180329E0F692302FDC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_9D54412A9AC7E1F2E541E0F6922F4F94" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_D81777B5E1ADA8180329E0F692302FDC" 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_DA47885F15B71EF3107DE0F69230CC01" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_9D54412A9AC7E1F2E541E0F6922F4F94" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_DA47885F15B71EF3107DE0F69230CC01" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_FD539F37FBC5E9F12EEDE0F69231C10F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_947869FC0C34475A3333E0F6922E3C8D" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_FD539F37FBC5E9F12EEDE0F69231C10F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue_88CA1336D4AAB1F12496E0F692316E0D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_947869FC0C34475A3333E0F6922E3C8D" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue_88CA1336D4AAB1F12496E0F692316E0D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_C07E5014546D51AAC701E0F692317C86" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_947869FC0C34475A3333E0F6922E3C8D" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_C07E5014546D51AAC701E0F692317C86" 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_98DCC2F6CBAF418D746FE0F69231C22B" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_947869FC0C34475A3333E0F6922E3C8D" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_98DCC2F6CBAF418D746FE0F69231C22B" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensationRestrictedStockUnitsDetails" 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_E379DEB08E72AE8E0EDAE0F691404443" 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_049D8B1B52730290A503E0F6913FB45D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E379DEB08E72AE8E0EDAE0F691404443" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_049D8B1B52730290A503E0F6913FB45D" 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_FED49D0710BB61D5284CE0F6913F4FF4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_049D8B1B52730290A503E0F6913FB45D" xlink:to="loc_us-gaap_AwardTypeAxis_FED49D0710BB61D5284CE0F6913F4FF4" 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_47CB9C8DE65C593F38D8E0F6913FE7FF_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_FED49D0710BB61D5284CE0F6913F4FF4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_47CB9C8DE65C593F38D8E0F6913FE7FF_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_47CB9C8DE65C593F38D8E0F6913FE7FF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_FED49D0710BB61D5284CE0F6913F4FF4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_47CB9C8DE65C593F38D8E0F6913FE7FF" 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_6DC6044C130054913C35E0F6913F49AF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_47CB9C8DE65C593F38D8E0F6913FE7FF" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_6DC6044C130054913C35E0F6913F49AF" 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_0E1D9E78CD042FE0DB7FE0F69140006B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E379DEB08E72AE8E0EDAE0F691404443" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_0E1D9E78CD042FE0DB7FE0F69140006B" 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_5E821E61EE8B049E66CEE0F6914078A0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E379DEB08E72AE8E0EDAE0F691404443" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_5E821E61EE8B049E66CEE0F6914078A0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsShareBasedLiabilitiesPaid" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsShareBasedLiabilitiesPaid_4F65ACFF69CB9564E911E0F691409CBD" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E379DEB08E72AE8E0EDAE0F691404443" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsShareBasedLiabilitiesPaid_4F65ACFF69CB9564E911E0F691409CBD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_A9476E6917F575779A06E0F69141E435" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E379DEB08E72AE8E0EDAE0F691404443" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_A9476E6917F575779A06E0F69141E435" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_1EB1E969F79D25819CF3E0F691418503" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E379DEB08E72AE8E0EDAE0F691404443" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_1EB1E969F79D25819CF3E0F691418503" 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_7738E7A3C4A92CACC5F3E0F691411F0B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_1EB1E969F79D25819CF3E0F691418503" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_7738E7A3C4A92CACC5F3E0F691411F0B" 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_282C08ADBC6BEB3C1281E0F691415753" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_1EB1E969F79D25819CF3E0F691418503" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_282C08ADBC6BEB3C1281E0F691415753" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsWeightedAverageGrantDateFairValueAbstract" xlink:label="loc_nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsWeightedAverageGrantDateFairValueAbstract_168D7273CAD6D2DF0198E0F69142F9C1" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E379DEB08E72AE8E0EDAE0F691404443" xlink:to="loc_nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsWeightedAverageGrantDateFairValueAbstract_168D7273CAD6D2DF0198E0F69142F9C1" 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_8AEA668726AC27F863C7E0F69142CB65" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsWeightedAverageGrantDateFairValueAbstract_168D7273CAD6D2DF0198E0F69142F9C1" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_8AEA668726AC27F863C7E0F69142CB65" 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_C4BE71FA4BFEC9C4E326E0F69142641A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsWeightedAverageGrantDateFairValueAbstract_168D7273CAD6D2DF0198E0F69142F9C1" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_C4BE71FA4BFEC9C4E326E0F69142641A" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.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_D195DB5CB297D76B6DF1E0F691EFCC60" 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_C1DB80146A2496F603E1E0F691EE0DDE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D195DB5CB297D76B6DF1E0F691EFCC60" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_C1DB80146A2496F603E1E0F691EE0DDE" 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_8AFB46B87C4C16D4514FE0F691EE1AE3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_C1DB80146A2496F603E1E0F691EE0DDE" xlink:to="loc_us-gaap_AwardTypeAxis_8AFB46B87C4C16D4514FE0F691EE1AE3" 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_DDB1D3EF823A5B2BAC6CE0F691EEDF08_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_8AFB46B87C4C16D4514FE0F691EE1AE3" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_DDB1D3EF823A5B2BAC6CE0F691EEDF08_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_DDB1D3EF823A5B2BAC6CE0F691EEDF08" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_8AFB46B87C4C16D4514FE0F691EE1AE3" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_DDB1D3EF823A5B2BAC6CE0F691EEDF08" 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_AAD0EB4AD86965F4A759E0F691EED9F3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_DDB1D3EF823A5B2BAC6CE0F691EEDF08" xlink:to="loc_us-gaap_EmployeeStockOptionMember_AAD0EB4AD86965F4A759E0F691EED9F3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_4992FDA75D5670041F4CE0F691EF2285" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D195DB5CB297D76B6DF1E0F691EFCC60" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_4992FDA75D5670041F4CE0F691EF2285" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_279D14C7E25368D21E18E0F691EF4420" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D195DB5CB297D76B6DF1E0F691EFCC60" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_279D14C7E25368D21E18E0F691EF4420" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedInPeriodFairValue1" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedInPeriodFairValue1_8E76A2FD4BD4341BF706E0F691EF570D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D195DB5CB297D76B6DF1E0F691EFCC60" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedInPeriodFairValue1_8E76A2FD4BD4341BF706E0F691EF570D" 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_85165F1E546B83F4501BE0F691F00922" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D195DB5CB297D76B6DF1E0F691EFCC60" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_85165F1E546B83F4501BE0F691F00922" 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_5996FFE0F88341DD0A3BE0F691F0A5D4" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D195DB5CB297D76B6DF1E0F691EFCC60" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_5996FFE0F88341DD0A3BE0F691F0A5D4" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensationTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensationTreasurySharesDetails" 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_CB4E3E971C957164D8C4E0F692F15B45" 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_B07A90C1C3C6492A84DAE0F692F0352A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CB4E3E971C957164D8C4E0F692F15B45" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_B07A90C1C3C6492A84DAE0F692F0352A" 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_061F0364D65FBDF6368FE0F692F078F8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_B07A90C1C3C6492A84DAE0F692F0352A" xlink:to="loc_us-gaap_AwardTypeAxis_061F0364D65FBDF6368FE0F692F078F8" 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_9D5E8082AE268FB09626E0F692F01278_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_061F0364D65FBDF6368FE0F692F078F8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_9D5E8082AE268FB09626E0F692F01278_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_9D5E8082AE268FB09626E0F692F01278" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_061F0364D65FBDF6368FE0F692F078F8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_9D5E8082AE268FB09626E0F692F01278" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_2A7D7E47E2C3FA899935E0F692F0D03E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_9D5E8082AE268FB09626E0F692F01278" xlink:to="loc_us-gaap_RestrictedStockMember_2A7D7E47E2C3FA899935E0F692F0D03E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PerformanceSharesMember" xlink:label="loc_us-gaap_PerformanceSharesMember_3F00F670448EA15E6163E0F692F140EB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_9D5E8082AE268FB09626E0F692F01278" xlink:to="loc_us-gaap_PerformanceSharesMember_3F00F670448EA15E6163E0F692F140EB" 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_767F38759CE1E6C4230CE0F692F1E9DF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_9D5E8082AE268FB09626E0F692F01278" xlink:to="loc_us-gaap_EmployeeStockOptionMember_767F38759CE1E6C4230CE0F692F1E9DF" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_DocumentPeriodEndDate" xlink:label="loc_dei_DocumentPeriodEndDate_1540EC19919167327082E0F692F16EEA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CB4E3E971C957164D8C4E0F692F15B45" xlink:to="loc_dei_DocumentPeriodEndDate_1540EC19919167327082E0F692F16EEA" xlink:type="arc" />
    <link:loc xlink:href="nx-20190430.xsd#nx_Deficiencyofstockoptionproceedsrecordedtoretainedearnings" xlink:label="loc_nx_Deficiencyofstockoptionproceedsrecordedtoretainedearnings_28A082E9B6A6FEAAE89AE0F692F10EA5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CB4E3E971C957164D8C4E0F692F15B45" xlink:to="loc_nx_Deficiencyofstockoptionproceedsrecordedtoretainedearnings_28A082E9B6A6FEAAE89AE0F692F10EA5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockNumberOfSharesAndRestrictionDisclosuresAbstract" xlink:label="loc_us-gaap_TreasuryStockNumberOfSharesAndRestrictionDisclosuresAbstract_A239E11B010C90C2BAD4E0F692F2554A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CB4E3E971C957164D8C4E0F692F15B45" xlink:to="loc_us-gaap_TreasuryStockNumberOfSharesAndRestrictionDisclosuresAbstract_A239E11B010C90C2BAD4E0F692F2554A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockShares" xlink:label="loc_us-gaap_TreasuryStockShares_ACC8908C6AD2156836BAE0F692F2E89F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TreasuryStockNumberOfSharesAndRestrictionDisclosuresAbstract_A239E11B010C90C2BAD4E0F692F2554A" xlink:to="loc_us-gaap_TreasuryStockShares_ACC8908C6AD2156836BAE0F692F2E89F" 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_2771AB9D731749A1C336E0F692F2346A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TreasuryStockNumberOfSharesAndRestrictionDisclosuresAbstract_A239E11B010C90C2BAD4E0F692F2554A" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_2771AB9D731749A1C336E0F692F2346A" 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_B1EA4A3C0FF9CC307FD1E0F692F2DA36" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TreasuryStockNumberOfSharesAndRestrictionDisclosuresAbstract_A239E11B010C90C2BAD4E0F692F2554A" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_B1EA4A3C0FF9CC307FD1E0F692F2DA36" 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_225346B69C54B0D3A1E5E0F692F217DA" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TreasuryStockNumberOfSharesAndRestrictionDisclosuresAbstract_A239E11B010C90C2BAD4E0F692F2554A" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodShares_225346B69C54B0D3A1E5E0F692F217DA" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/WarrantyObligations" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/WarrantyObligationsDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/WarrantyObligationsTables" xlink:type="extended" />
</link:linkbase>
