<?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/AccruedLiabilities" xlink:href="nx-20191031.xsd#AccruedLiabilities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/AccruedLiabilitiesDetails" xlink:href="nx-20191031.xsd#AccruedLiabilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/AccruedLiabilitiesTables" xlink:href="nx-20191031.xsd#AccruedLiabilitiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CommitmentsAndContingencies" xlink:href="nx-20191031.xsd#CommitmentsAndContingencies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CommitmentsAndContingenciesDetails" xlink:href="nx-20191031.xsd#CommitmentsAndContingenciesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CommitmentsAndContingenciesTables" xlink:href="nx-20191031.xsd#CommitmentsAndContingenciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/ConsolidatedBalanceSheets" xlink:href="nx-20191031.xsd#ConsolidatedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:href="nx-20191031.xsd#ConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/ConsolidatedStatementOfStockholdersEquity" xlink:href="nx-20191031.xsd#ConsolidatedStatementOfStockholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/ConsolidatedStatementOfStockholdersEquityParenthetical" xlink:href="nx-20191031.xsd#ConsolidatedStatementOfStockholdersEquityParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/ConsolidatedStatementsOfCashFlow" xlink:href="nx-20191031.xsd#ConsolidatedStatementsOfCashFlow" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/ConsolidatedStatementsOfComprehensiveIncomeLoss" xlink:href="nx-20191031.xsd#ConsolidatedStatementsOfComprehensiveIncomeLoss" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/ConsolidatedStatementsOfIncomeLoss" xlink:href="nx-20191031.xsd#ConsolidatedStatementsOfIncomeLoss" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/ConsolidatedStatementsOfIncomeLossParenthetical" xlink:href="nx-20191031.xsd#ConsolidatedStatementsOfIncomeLossParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DebtAndCapitalLeaseObligations" xlink:href="nx-20191031.xsd#DebtAndCapitalLeaseObligations" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DebtAndCapitalLeaseObligationsNarrativeDetails" xlink:href="nx-20191031.xsd#DebtAndCapitalLeaseObligationsNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DebtAndCapitalLeaseObligationsScheduleOfApplicableMarginsAndCommitmentFeesDetails" xlink:href="nx-20191031.xsd#DebtAndCapitalLeaseObligationsScheduleOfApplicableMarginsAndCommitmentFeesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DebtAndCapitalLeaseObligationsScheduleOfDebtMaturitiesDetails" xlink:href="nx-20191031.xsd#DebtAndCapitalLeaseObligationsScheduleOfDebtMaturitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DebtAndCapitalLeaseObligationsScheduleOfDebtObligationsDetails" xlink:href="nx-20191031.xsd#DebtAndCapitalLeaseObligationsScheduleOfDebtObligationsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DebtAndCapitalLeaseObligationsTables" xlink:href="nx-20191031.xsd#DebtAndCapitalLeaseObligationsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DerivativeInstruments" xlink:href="nx-20191031.xsd#DerivativeInstruments" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DerivativeInstrumentsDetail" xlink:href="nx-20191031.xsd#DerivativeInstrumentsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DerivativeInstrumentsTables" xlink:href="nx-20191031.xsd#DerivativeInstrumentsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DocumentAndEntityInformation" xlink:href="nx-20191031.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/EarningsPerShare" xlink:href="nx-20191031.xsd#EarningsPerShare" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/EarningsPerShareDetail" xlink:href="nx-20191031.xsd#EarningsPerShareDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/EarningsPerShareTables" xlink:href="nx-20191031.xsd#EarningsPerShareTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/FairValueMeasurementOfAssetsAndLiabilities" xlink:href="nx-20191031.xsd#FairValueMeasurementOfAssetsAndLiabilities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/FairValueMeasurementOfAssetsAndLiabilitiesDetails" xlink:href="nx-20191031.xsd#FairValueMeasurementOfAssetsAndLiabilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/GoodwillAndIntangibleAssets" xlink:href="nx-20191031.xsd#GoodwillAndIntangibleAssets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/GoodwillAndIntangibleAssetsDetail" xlink:href="nx-20191031.xsd#GoodwillAndIntangibleAssetsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/GoodwillAndIntangibleAssetsTables" xlink:href="nx-20191031.xsd#GoodwillAndIntangibleAssetsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/IncomeTaxTables" xlink:href="nx-20191031.xsd#IncomeTaxTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/IncomeTaxes" xlink:href="nx-20191031.xsd#IncomeTaxes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/IncomeTaxesDetail" xlink:href="nx-20191031.xsd#IncomeTaxesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/Inventories" xlink:href="nx-20191031.xsd#Inventories" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/InventoriesDetail" xlink:href="nx-20191031.xsd#InventoriesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/InventoriesInventoriesAccountingChangeDetails" xlink:href="nx-20191031.xsd#InventoriesInventoriesAccountingChangeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/InventoriesTables" xlink:href="nx-20191031.xsd#InventoriesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentation" xlink:href="nx-20191031.xsd#NatureOfOperationsAndBasisOfPresentation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationCashFlowDetails" xlink:href="nx-20191031.xsd#NatureOfOperationsAndBasisOfPresentationCashFlowDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationConcentrationDetails" xlink:href="nx-20191031.xsd#NatureOfOperationsAndBasisOfPresentationConcentrationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationInventoryDetails" xlink:href="nx-20191031.xsd#NatureOfOperationsAndBasisOfPresentationInventoryDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationLongLivedAssetsDetails" xlink:href="nx-20191031.xsd#NatureOfOperationsAndBasisOfPresentationLongLivedAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationNatureOfOperationsAndBasisOfPresentationRevenueFromContractsWithCustomersDetails" xlink:href="nx-20191031.xsd#NatureOfOperationsAndBasisOfPresentationNatureOfOperationsAndBasisOfPresentationRevenueFromContractsWithCustomersDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationOrganizationConsolidationAndPresentationOfFinancialStatementsPolicies" xlink:href="nx-20191031.xsd#NatureOfOperationsAndBasisOfPresentationOrganizationConsolidationAndPresentationOfFinancialStatementsPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationRelatedPartyTransactionsDetails" xlink:href="nx-20191031.xsd#NatureOfOperationsAndBasisOfPresentationRelatedPartyTransactionsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationRestructuringDetails" xlink:href="nx-20191031.xsd#NatureOfOperationsAndBasisOfPresentationRestructuringDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationStockOptionsDetails" xlink:href="nx-20191031.xsd#NatureOfOperationsAndBasisOfPresentationStockOptionsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationTables" xlink:href="nx-20191031.xsd#NatureOfOperationsAndBasisOfPresentationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NewAccountingGuidanceAdopted" xlink:href="nx-20191031.xsd#NewAccountingGuidanceAdopted" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NewAccountingGuidanceAdoptedDetails" xlink:href="nx-20191031.xsd#NewAccountingGuidanceAdoptedDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/OtherIncomeExpense" xlink:href="nx-20191031.xsd#OtherIncomeExpense" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/OtherIncomeExpenseDetail" xlink:href="nx-20191031.xsd#OtherIncomeExpenseDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/OtherIncomeExpenseTables" xlink:href="nx-20191031.xsd#OtherIncomeExpenseTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/PropertyPlantAndEquipmentDetails" xlink:href="nx-20191031.xsd#PropertyPlantAndEquipmentDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/PropertyPlantAndEquipmentTables" xlink:href="nx-20191031.xsd#PropertyPlantAndEquipmentTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/PropertyPlantEquipment" xlink:href="nx-20191031.xsd#PropertyPlantEquipment" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/ReceivablesAllowance" xlink:href="nx-20191031.xsd#ReceivablesAllowance" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/ReceivablesAllowanceDetails" xlink:href="nx-20191031.xsd#ReceivablesAllowanceDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/ReceivablesAllowanceTables" xlink:href="nx-20191031.xsd#ReceivablesAllowanceTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/RetirementPlans" xlink:href="nx-20191031.xsd#RetirementPlans" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/RetirementPlansDetail" xlink:href="nx-20191031.xsd#RetirementPlansDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/RetirementPlansTables" xlink:href="nx-20191031.xsd#RetirementPlansTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/SegmentInformation" xlink:href="nx-20191031.xsd#SegmentInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/SegmentInformationDetail" xlink:href="nx-20191031.xsd#SegmentInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/SegmentInformationTables" xlink:href="nx-20191031.xsd#SegmentInformationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensation" xlink:href="nx-20191031.xsd#StockBasedCompensation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationDetail" xlink:href="nx-20191031.xsd#StockBasedCompensationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationTables" xlink:href="nx-20191031.xsd#StockBasedCompensationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockholdersEquity" xlink:href="nx-20191031.xsd#StockholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockholdersEquityDetails" xlink:href="nx-20191031.xsd#StockholdersEquityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockholdersEquityTables" xlink:href="nx-20191031.xsd#StockholdersEquityTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/UnauditedQuarterlyData" xlink:href="nx-20191031.xsd#UnauditedQuarterlyData" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/UnauditedQuarterlyDataDetails" xlink:href="nx-20191031.xsd#UnauditedQuarterlyDataDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/UnauditedQuarterlyDataTables" xlink:href="nx-20191031.xsd#UnauditedQuarterlyDataTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/WarrantyObligations" xlink:href="nx-20191031.xsd#WarrantyObligations" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/WarrantyObligationsDetail" xlink:href="nx-20191031.xsd#WarrantyObligationsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/WarrantyObligationsTables" xlink:href="nx-20191031.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/AccruedLiabilities" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/AccruedLiabilitiesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/AccruedLiabilitiesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/CommitmentsAndContingencies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/CommitmentsAndContingenciesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherCommitmentsLineItems" xlink:label="loc_us-gaap_OtherCommitmentsLineItems_283EAF607C4713EFBD0590E91FDACFC0" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherCommitmentsTable" xlink:label="loc_us-gaap_OtherCommitmentsTable_23214C4D5B254F2A850490E91FD9F96D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_283EAF607C4713EFBD0590E91FDACFC0" xlink:to="loc_us-gaap_OtherCommitmentsTable_23214C4D5B254F2A850490E91FD9F96D" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="nx-20191031.xsd#nx_ProductWarrantyAxis" xlink:label="loc_nx_ProductWarrantyAxis_6242386E1D868B432F1F90E91FD9D012" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OtherCommitmentsTable_23214C4D5B254F2A850490E91FD9F96D" xlink:to="loc_nx_ProductWarrantyAxis_6242386E1D868B432F1F90E91FD9D012" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_ProductWarrantyDomain" xlink:label="loc_nx_ProductWarrantyDomain_CDE4FAABE0CC96F539B990E91FD9DE64_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_nx_ProductWarrantyAxis_6242386E1D868B432F1F90E91FD9D012" xlink:to="loc_nx_ProductWarrantyDomain_CDE4FAABE0CC96F539B990E91FD9DE64_default" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_ProductWarrantyDomain" xlink:label="loc_nx_ProductWarrantyDomain_CDE4FAABE0CC96F539B990E91FD9DE64" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_nx_ProductWarrantyAxis_6242386E1D868B432F1F90E91FD9D012" xlink:to="loc_nx_ProductWarrantyDomain_CDE4FAABE0CC96F539B990E91FD9DE64" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LeaseAndRentalExpense" xlink:label="loc_us-gaap_LeaseAndRentalExpense_F79185653A42BE90AA7F90E91FDA0D8E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_283EAF607C4713EFBD0590E91FDACFC0" xlink:to="loc_us-gaap_LeaseAndRentalExpense_F79185653A42BE90AA7F90E91FDA0D8E" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_AmountPurchasedUnderPurchaseObligations" xlink:label="loc_nx_AmountPurchasedUnderPurchaseObligations_7B365B6779C4819C12E990E91FDA0372" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_283EAF607C4713EFBD0590E91FDACFC0" xlink:to="loc_nx_AmountPurchasedUnderPurchaseObligations_7B365B6779C4819C12E990E91FDA0372" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFirstAnniversary" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFirstAnniversary_541F7A1CBF01EC1FFF1890E91FDA4C29" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_283EAF607C4713EFBD0590E91FDACFC0" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFirstAnniversary_541F7A1CBF01EC1FFF1890E91FDA4C29" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_Cumulativeassetretirmentobligation" xlink:label="loc_nx_Cumulativeassetretirmentobligation_ECE0AA1E747F0A16102E90E91FDA4956" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_283EAF607C4713EFBD0590E91FDACFC0" xlink:to="loc_nx_Cumulativeassetretirmentobligation_ECE0AA1E747F0A16102E90E91FDA4956" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProductWarrantyAccrualPayments" xlink:label="loc_us-gaap_ProductWarrantyAccrualPayments_C55F7E73C4C0C6BEE5CC90E91FDA4076" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_283EAF607C4713EFBD0590E91FDACFC0" xlink:to="loc_us-gaap_ProductWarrantyAccrualPayments_C55F7E73C4C0C6BEE5CC90E91FDA4076" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LossContingencyReceivableProceeds" xlink:label="loc_us-gaap_LossContingencyReceivableProceeds_00691EDC8E4FB56A644190E91FDB3E8B" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_283EAF607C4713EFBD0590E91FDACFC0" xlink:to="loc_us-gaap_LossContingencyReceivableProceeds_00691EDC8E4FB56A644190E91FDB3E8B" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/CommitmentsAndContingenciesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/ConsolidatedBalanceSheets" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/ConsolidatedStatementOfStockholdersEquity" 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_7913097EF915F8AEC1919381CD2F114B" 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_2E09A3C02F5DB7124F419381CD1F3E78" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_7913097EF915F8AEC1919381CD2F114B" xlink:to="loc_us-gaap_StatementTable_2E09A3C02F5DB7124F419381CD1F3E78" 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_D586B2F3DC4117B628589381CD1FD786" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_2E09A3C02F5DB7124F419381CD1F3E78" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_D586B2F3DC4117B628589381CD1FD786" 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_0307E2B25C1551E779579381CD2FD56B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_D586B2F3DC4117B628589381CD1FD786" xlink:to="loc_us-gaap_EquityComponentDomain_0307E2B25C1551E779579381CD2FD56B_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_0307E2B25C1551E779579381CD2FD56B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_D586B2F3DC4117B628589381CD1FD786" xlink:to="loc_us-gaap_EquityComponentDomain_0307E2B25C1551E779579381CD2FD56B" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_CommonStockSharesMember" xlink:label="loc_nx_CommonStockSharesMember_FC6716501A0237A2B7929381CD2F1247" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_0307E2B25C1551E779579381CD2FD56B" xlink:to="loc_nx_CommonStockSharesMember_FC6716501A0237A2B7929381CD2F1247" 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_0F409AA6D34B2C6973E99381CD2F62DE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_0307E2B25C1551E779579381CD2FD56B" xlink:to="loc_us-gaap_CommonStockMember_0F409AA6D34B2C6973E99381CD2F62DE" 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_23BAC196AE27D6784A259381CD2F7F50" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_0307E2B25C1551E779579381CD2FD56B" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_23BAC196AE27D6784A259381CD2F7F50" 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_3B81DE4172CCE901646C9381CD2F521B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_0307E2B25C1551E779579381CD2FD56B" xlink:to="loc_us-gaap_RetainedEarningsMember_3B81DE4172CCE901646C9381CD2F521B" 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_F14AE56A336D1103F6509381CD2F72A0" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_0307E2B25C1551E779579381CD2FD56B" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_F14AE56A336D1103F6509381CD2F72A0" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_TreasuryStockSharesMember" xlink:label="loc_nx_TreasuryStockSharesMember_DABAE31568475D7B80029381CD2F3811" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_0307E2B25C1551E779579381CD2FD56B" xlink:to="loc_nx_TreasuryStockSharesMember_DABAE31568475D7B80029381CD2F3811" 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_4C706F443994382C50EF9381CD2FCD23" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_0307E2B25C1551E779579381CD2FD56B" xlink:to="loc_us-gaap_TreasuryStockMember_4C706F443994382C50EF9381CD2FCD23" 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_A89055B822F15ACE81A59381CD2F249A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_7913097EF915F8AEC1919381CD2F114B" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_A89055B822F15ACE81A59381CD2F249A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockSharesIssued" xlink:label="loc_us-gaap_CommonStockSharesIssued_43D4DAD59AA7796087589381CD2FE2D3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_A89055B822F15ACE81A59381CD2F249A" xlink:to="loc_us-gaap_CommonStockSharesIssued_43D4DAD59AA7796087589381CD2FE2D3" 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_DE367398F34633AB39FE9381CD2FB029" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_A89055B822F15ACE81A59381CD2F249A" xlink:to="loc_us-gaap_StockholdersEquity_DE367398F34633AB39FE9381CD2FB029" 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_509CB73461964D0EE1279381CD2F45DF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_A89055B822F15ACE81A59381CD2F249A" xlink:to="loc_us-gaap_TreasuryStockShares_509CB73461964D0EE1279381CD2F45DF" 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_86FAE5B77ECA81814F6D9381CD2FB928" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_A89055B822F15ACE81A59381CD2F249A" xlink:to="loc_us-gaap_NetIncomeLoss_86FAE5B77ECA81814F6D9381CD2FB928" 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_CA34ED23B805A5F263759381CD2FE915" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_A89055B822F15ACE81A59381CD2F249A" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_CA34ED23B805A5F263759381CD2FE915" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodNetOfTax_BB1C298D40A0E3DB78479381CD2FDC84" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_A89055B822F15ACE81A59381CD2F249A" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodNetOfTax_BB1C298D40A0E3DB78479381CD2FDC84" 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_A068A3F2BAA879921C889381CD2F2250" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_A89055B822F15ACE81A59381CD2F249A" xlink:to="loc_us-gaap_DividendsCommonStockCash_A068A3F2BAA879921C889381CD2F2250" 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_D4E09C24235651C9A5829381CD2F3EE0" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_A89055B822F15ACE81A59381CD2F249A" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodShares_D4E09C24235651C9A5829381CD2F3EE0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodValue" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodValue_E8EE6FE38E54140F7BFA9381CD2FF4F5" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_A89055B822F15ACE81A59381CD2F249A" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodValue_E8EE6FE38E54140F7BFA9381CD2FF4F5" 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_44CF098B500AEC80600B9381CD2FD238" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_A89055B822F15ACE81A59381CD2F249A" xlink:to="loc_us-gaap_ShareBasedCompensationAbstract_44CF098B500AEC80600B9381CD2FD238" 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_4E367345910E51E8A11D9381CD2F1AA1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationAbstract_44CF098B500AEC80600B9381CD2FD238" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_4E367345910E51E8A11D9381CD2F1AA1" 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_DD985B07D8B787799A649381CD2FACC2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationAbstract_44CF098B500AEC80600B9381CD2FD238" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_DD985B07D8B787799A649381CD2FACC2" 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_F468F770F942ACEFE69C9381CD2FDDA9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationAbstract_44CF098B500AEC80600B9381CD2FD238" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_F468F770F942ACEFE69C9381CD2FDDA9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalIncomeTaxDeficiencyFromShareBasedCompensation" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalIncomeTaxDeficiencyFromShareBasedCompensation_355C00E2675E0C0EDB7E9381CD2F85C9" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationAbstract_44CF098B500AEC80600B9381CD2FD238" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalIncomeTaxDeficiencyFromShareBasedCompensation_355C00E2675E0C0EDB7E9381CD2F85C9" 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_B2DC39AD89E608C335CA9381CD2F08C0" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationAbstract_44CF098B500AEC80600B9381CD2FD238" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardGross_B2DC39AD89E608C335CA9381CD2F08C0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross_2F1FB82B7C783A062B679381CD2FF39A" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationAbstract_44CF098B500AEC80600B9381CD2FD238" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross_2F1FB82B7C783A062B679381CD2FF39A" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_StockIssuedDuringPeriodTreasurySharesPerformanceSharesVested" xlink:label="loc_nx_StockIssuedDuringPeriodTreasurySharesPerformanceSharesVested_CB29EF33AC75D6B829C99381CD2F755E" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationAbstract_44CF098B500AEC80600B9381CD2FD238" xlink:to="loc_nx_StockIssuedDuringPeriodTreasurySharesPerformanceSharesVested_CB29EF33AC75D6B829C99381CD2F755E" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_StockIssuedDuringPeriodValuePerformanceSharesVested" xlink:label="loc_nx_StockIssuedDuringPeriodValuePerformanceSharesVested_D861F13E999EFC29F1C69381CD2FE674" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationAbstract_44CF098B500AEC80600B9381CD2FD238" xlink:to="loc_nx_StockIssuedDuringPeriodValuePerformanceSharesVested_D861F13E999EFC29F1C69381CD2FE674" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxEffectsAllocatedDirectlyToEquityOther" xlink:label="loc_us-gaap_IncomeTaxEffectsAllocatedDirectlyToEquityOther_C2A5EF715184366ED6079381CD2FDD10" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_A89055B822F15ACE81A59381CD2F249A" xlink:to="loc_us-gaap_IncomeTaxEffectsAllocatedDirectlyToEquityOther_C2A5EF715184366ED6079381CD2FDD10" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquityOtherShares" xlink:label="loc_us-gaap_StockholdersEquityOtherShares_85BE21C7F5B5F12A52BE9381CD2F3ABC" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_A89055B822F15ACE81A59381CD2F249A" xlink:to="loc_us-gaap_StockholdersEquityOtherShares_85BE21C7F5B5F12A52BE9381CD2F3ABC" 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_903C2848DB5C8035124C9381CD2F18DF" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_A89055B822F15ACE81A59381CD2F249A" xlink:to="loc_us-gaap_StockholdersEquityOther_903C2848DB5C8035124C9381CD2F18DF" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/ConsolidatedStatementOfStockholdersEquityParenthetical" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/ConsolidatedStatementsOfCashFlow" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/ConsolidatedStatementsOfComprehensiveIncomeLoss" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/ConsolidatedStatementsOfIncomeLoss" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/ConsolidatedStatementsOfIncomeLossParenthetical" 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/DebtAndCapitalLeaseObligationsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentLineItems" xlink:label="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentTable" xlink:label="loc_us-gaap_DebtInstrumentTable_091E8C9C4DC7CFD4AB75D220AF7947A4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_us-gaap_DebtInstrumentTable_091E8C9C4DC7CFD4AB75D220AF7947A4" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="nx-20191031.xsd#nx_InterestRateScenarioAxis" xlink:label="loc_nx_InterestRateScenarioAxis_6A6E9F039B7230A8FF3CD220AF7A85D3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_091E8C9C4DC7CFD4AB75D220AF7947A4" xlink:to="loc_nx_InterestRateScenarioAxis_6A6E9F039B7230A8FF3CD220AF7A85D3" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_InterestRateScenarioDomain" xlink:label="loc_nx_InterestRateScenarioDomain_3BB28AAC4F588B5D6A27D220AF7BD936_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_nx_InterestRateScenarioAxis_6A6E9F039B7230A8FF3CD220AF7A85D3" xlink:to="loc_nx_InterestRateScenarioDomain_3BB28AAC4F588B5D6A27D220AF7BD936_default" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_InterestRateScenarioDomain" xlink:label="loc_nx_InterestRateScenarioDomain_3BB28AAC4F588B5D6A27D220AF7BD936" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_nx_InterestRateScenarioAxis_6A6E9F039B7230A8FF3CD220AF7A85D3" xlink:to="loc_nx_InterestRateScenarioDomain_3BB28AAC4F588B5D6A27D220AF7BD936" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_LessThanOneandOneHalfLeverageRatioMember" xlink:label="loc_nx_LessThanOneandOneHalfLeverageRatioMember_2BFF974726591C60650AD220AF7B00FF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_InterestRateScenarioDomain_3BB28AAC4F588B5D6A27D220AF7BD936" xlink:to="loc_nx_LessThanOneandOneHalfLeverageRatioMember_2BFF974726591C60650AD220AF7B00FF" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_GreaterThanThreeLeverageRatioMember" xlink:label="loc_nx_GreaterThanThreeLeverageRatioMember_AADACE364A2344ED599ED220AF7CEA7E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_InterestRateScenarioDomain_3BB28AAC4F588B5D6A27D220AF7BD936" xlink:to="loc_nx_GreaterThanThreeLeverageRatioMember_AADACE364A2344ED599ED220AF7CEA7E" 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_22E38B9A67A627E673AFD220AF7C7D62" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_091E8C9C4DC7CFD4AB75D220AF7947A4" xlink:to="loc_us-gaap_CreditFacilityAxis_22E38B9A67A627E673AFD220AF7C7D62" 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_3B3A6AD57E01C00417DED220AF7C3706_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_22E38B9A67A627E673AFD220AF7C7D62" xlink:to="loc_us-gaap_CreditFacilityDomain_3B3A6AD57E01C00417DED220AF7C3706_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_3B3A6AD57E01C00417DED220AF7C3706" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_22E38B9A67A627E673AFD220AF7C7D62" xlink:to="loc_us-gaap_CreditFacilityDomain_3B3A6AD57E01C00417DED220AF7C3706" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_TermLoanFacilityMember" xlink:label="loc_nx_TermLoanFacilityMember_449AF2957EBA9CC28D61D220AF7D9458" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_3B3A6AD57E01C00417DED220AF7C3706" xlink:to="loc_nx_TermLoanFacilityMember_449AF2957EBA9CC28D61D220AF7D9458" 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_1094509C1993AAB95A58D220AF7D5A67" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_3B3A6AD57E01C00417DED220AF7C3706" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_1094509C1993AAB95A58D220AF7D5A67" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_A2016CreditAgreementMember" xlink:label="loc_nx_A2016CreditAgreementMember_25DBEC5AF30843CC915CD220AF7DFE91" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_3B3A6AD57E01C00417DED220AF7C3706" xlink:to="loc_nx_A2016CreditAgreementMember_25DBEC5AF30843CC915CD220AF7DFE91" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_SwingLineMember" xlink:label="loc_nx_SwingLineMember_2DFE5807E74008D0F82ED220AF7E898F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_3B3A6AD57E01C00417DED220AF7C3706" xlink:to="loc_nx_SwingLineMember_2DFE5807E74008D0F82ED220AF7E898F" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_A2018CreditFacilityMember" xlink:label="loc_nx_A2018CreditFacilityMember_94EFE7B88C3EC7D3FC11D220AF7EBF75" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_3B3A6AD57E01C00417DED220AF7C3706" xlink:to="loc_nx_A2018CreditFacilityMember_94EFE7B88C3EC7D3FC11D220AF7EBF75" 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_D9B0D0B6330C834246E5D220AF7E1176" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_091E8C9C4DC7CFD4AB75D220AF7947A4" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_D9B0D0B6330C834246E5D220AF7E1176" 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_90170A9847E90D8A63B0D220AF7E2EF5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_D9B0D0B6330C834246E5D220AF7E1176" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_90170A9847E90D8A63B0D220AF7E2EF5_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_90170A9847E90D8A63B0D220AF7E2EF5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_D9B0D0B6330C834246E5D220AF7E1176" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_90170A9847E90D8A63B0D220AF7E2EF5" 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_46D09237E49755242AB5D220AF7E2DB5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_90170A9847E90D8A63B0D220AF7E2EF5" xlink:to="loc_us-gaap_LineOfCreditMember_46D09237E49755242AB5D220AF7E2DB5" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_A2016CreditAgreementMember" xlink:label="loc_nx_A2016CreditAgreementMember_6DA0FC9ACFF0042B333FD220AF7F216B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_90170A9847E90D8A63B0D220AF7E2EF5" xlink:to="loc_nx_A2016CreditAgreementMember_6DA0FC9ACFF0042B333FD220AF7F216B" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_CapitalLeaseObligationsAndOtherMember" xlink:label="loc_nx_CapitalLeaseObligationsAndOtherMember_AC51DF639503DEF15009D220AF7FA008" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_90170A9847E90D8A63B0D220AF7E2EF5" xlink:to="loc_nx_CapitalLeaseObligationsAndOtherMember_AC51DF639503DEF15009D220AF7FA008" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_TermLoanFacilityMember" xlink:label="loc_nx_TermLoanFacilityMember_D5A0D7A1F0D7874AD1B6D220AF7F268B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_90170A9847E90D8A63B0D220AF7E2EF5" xlink:to="loc_nx_TermLoanFacilityMember_D5A0D7A1F0D7874AD1B6D220AF7F268B" 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_2D5B50DA3C818958AB55D220AF7F98D8" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_90170A9847E90D8A63B0D220AF7E2EF5" xlink:to="loc_us-gaap_CapitalLeaseObligationsMember_2D5B50DA3C818958AB55D220AF7F98D8" 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_7CA3FA4C0002BF62F836D220AF80188D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_091E8C9C4DC7CFD4AB75D220AF7947A4" xlink:to="loc_us-gaap_VariableRateAxis_7CA3FA4C0002BF62F836D220AF80188D" 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_44A48D7C696FFB620890D220AF807DBF_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_7CA3FA4C0002BF62F836D220AF80188D" xlink:to="loc_us-gaap_VariableRateDomain_44A48D7C696FFB620890D220AF807DBF_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_44A48D7C696FFB620890D220AF807DBF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_7CA3FA4C0002BF62F836D220AF80188D" xlink:to="loc_us-gaap_VariableRateDomain_44A48D7C696FFB620890D220AF807DBF" 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_77DA5A95727DCCE72D8CD220AF80C97E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_44A48D7C696FFB620890D220AF807DBF" xlink:to="loc_us-gaap_BaseRateMember_77DA5A95727DCCE72D8CD220AF80C97E" 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_5B1EF616C4EBF67672E9D220AF81B4CB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_44A48D7C696FFB620890D220AF807DBF" xlink:to="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_5B1EF616C4EBF67672E9D220AF81B4CB" 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_FE1D9AF28F5EF3F9E7FCD220AF81C0CB" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_091E8C9C4DC7CFD4AB75D220AF7947A4" xlink:to="loc_srt_RangeAxis_FE1D9AF28F5EF3F9E7FCD220AF81C0CB" 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_2870138C816C5A67FB6FD220AF81C79F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_FE1D9AF28F5EF3F9E7FCD220AF81C0CB" xlink:to="loc_srt_RangeMember_2870138C816C5A67FB6FD220AF81C79F_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_2870138C816C5A67FB6FD220AF81C79F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_FE1D9AF28F5EF3F9E7FCD220AF81C0CB" xlink:to="loc_srt_RangeMember_2870138C816C5A67FB6FD220AF81C79F" 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_89BF1FDCF1582C67F08FD220AF81F47B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_2870138C816C5A67FB6FD220AF81C79F" xlink:to="loc_srt_MinimumMember_89BF1FDCF1582C67F08FD220AF81F47B" 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_6825C3E8DFF7043C268BD220AF8185FD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_2870138C816C5A67FB6FD220AF81C79F" xlink:to="loc_srt_MaximumMember_6825C3E8DFF7043C268BD220AF8185FD" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_DebtCommitmentFeeTrancheAxis" xlink:label="loc_nx_DebtCommitmentFeeTrancheAxis_6BDFBC1A70FB7686AD55D220AF82DEEC" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_091E8C9C4DC7CFD4AB75D220AF7947A4" xlink:to="loc_nx_DebtCommitmentFeeTrancheAxis_6BDFBC1A70FB7686AD55D220AF82DEEC" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_DebtCommitmentFeeTrancheDomain" xlink:label="loc_nx_DebtCommitmentFeeTrancheDomain_37FA445F40D876D5A684D220AF825979_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_nx_DebtCommitmentFeeTrancheAxis_6BDFBC1A70FB7686AD55D220AF82DEEC" xlink:to="loc_nx_DebtCommitmentFeeTrancheDomain_37FA445F40D876D5A684D220AF825979_default" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_DebtCommitmentFeeTrancheDomain" xlink:label="loc_nx_DebtCommitmentFeeTrancheDomain_37FA445F40D876D5A684D220AF825979" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_nx_DebtCommitmentFeeTrancheAxis_6BDFBC1A70FB7686AD55D220AF82DEEC" xlink:to="loc_nx_DebtCommitmentFeeTrancheDomain_37FA445F40D876D5A684D220AF825979" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_31840E8E86F3DDCD1716D220AF82F883" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_091E8C9C4DC7CFD4AB75D220AF7947A4" xlink:to="loc_dei_LegalEntityAxis_31840E8E86F3DDCD1716D220AF82F883" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_AB261213D48F816A699FD220AF838682_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_31840E8E86F3DDCD1716D220AF82F883" xlink:to="loc_dei_EntityDomain_AB261213D48F816A699FD220AF838682_default" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_AB261213D48F816A699FD220AF838682" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_31840E8E86F3DDCD1716D220AF82F883" xlink:to="loc_dei_EntityDomain_AB261213D48F816A699FD220AF838682" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_HLPMember" xlink:label="loc_nx_HLPMember_6ABC0F56EA14C9364E29D220AF83ABA7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_AB261213D48F816A699FD220AF838682" xlink:to="loc_nx_HLPMember_6ABC0F56EA14C9364E29D220AF83ABA7" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_LineofCreditFacilityMaximumBorrowingCapacityCommittedAmount" xlink:label="loc_nx_LineofCreditFacilityMaximumBorrowingCapacityCommittedAmount_EEF2A53F162D0A00B2F2D220AF83599B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_nx_LineofCreditFacilityMaximumBorrowingCapacityCommittedAmount_EEF2A53F162D0A00B2F2D220AF83599B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentTerm" xlink:label="loc_us-gaap_DebtInstrumentTerm_18BEB0CE3809D822C5C8D220AF84E192" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_us-gaap_DebtInstrumentTerm_18BEB0CE3809D822C5C8D220AF84E192" 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_2535E45976678443E2C7D220AF846191" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_2535E45976678443E2C7D220AF846191" 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_FAA7654C1B3FEAAA18ADD220AF846625" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_FAA7654C1B3FEAAA18ADD220AF846625" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_DebtInstrumentRequiredLeverageRatio" xlink:label="loc_nx_DebtInstrumentRequiredLeverageRatio_7CE0C2FEAF5E76048DDAD220AF8581D9" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_nx_DebtInstrumentRequiredLeverageRatio_7CE0C2FEAF5E76048DDAD220AF8581D9" 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_C4DA69DC06C48664AA88D220AF855D9F" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_us-gaap_LineOfCreditFacilityCommitmentFeePercentage_C4DA69DC06C48664AA88D220AF855D9F" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_DebtInstrumentDebtDefaultInterestAccrualRate" xlink:label="loc_nx_DebtInstrumentDebtDefaultInterestAccrualRate_CE7B8AAD6B4C3474A9B0D220AF857179" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_nx_DebtInstrumentDebtDefaultInterestAccrualRate_CE7B8AAD6B4C3474A9B0D220AF857179" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_MinimumIncrementalBorrowing" xlink:label="loc_nx_MinimumIncrementalBorrowing_256EA789DFE774E484F5D220AF85358B" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_nx_MinimumIncrementalBorrowing_256EA789DFE774E484F5D220AF85358B" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_MaximumIncrementalBorrowing" xlink:label="loc_nx_MaximumIncrementalBorrowing_04E1529FCA6DAD4CBE18D220AF8671CD" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_nx_MaximumIncrementalBorrowing_04E1529FCA6DAD4CBE18D220AF8671CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentUnusedBorrowingCapacityAmount" xlink:label="loc_us-gaap_DebtInstrumentUnusedBorrowingCapacityAmount_BFC525324F9193482E05D220AF860AB4" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_us-gaap_DebtInstrumentUnusedBorrowingCapacityAmount_BFC525324F9193482E05D220AF860AB4" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_DebtInstrumentLimitationonAnnualDividend" xlink:label="loc_nx_DebtInstrumentLimitationonAnnualDividend_C49C99AE17C70C598BF7D220AF867168" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_nx_DebtInstrumentLimitationonAnnualDividend_C49C99AE17C70C598BF7D220AF867168" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_DebtInstrumentLeverageRatioThresholdforLimitationstoTakeEffect" xlink:label="loc_nx_DebtInstrumentLeverageRatioThresholdforLimitationstoTakeEffect_E8877E9C7DA7F1F977CED220AF866032" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_nx_DebtInstrumentLeverageRatioThresholdforLimitationstoTakeEffect_E8877E9C7DA7F1F977CED220AF866032" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_DebtInstrumentLiquidityThresholdforLimitationstoTakeEffect" xlink:label="loc_nx_DebtInstrumentLiquidityThresholdforLimitationstoTakeEffect_69D17585951846568BC0D220AF879E33" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_nx_DebtInstrumentLiquidityThresholdforLimitationstoTakeEffect_69D17585951846568BC0D220AF879E33" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RepaymentsOfDebt" xlink:label="loc_us-gaap_RepaymentsOfDebt_8722C5F45194EA0295C1D220AF87E26A" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_us-gaap_RepaymentsOfDebt_8722C5F45194EA0295C1D220AF87E26A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityFairValueOfAmountOutstanding" xlink:label="loc_us-gaap_LineOfCreditFacilityFairValueOfAmountOutstanding_BFDC0E8C1A83C56932D3D220AF871E5A" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_us-gaap_LineOfCreditFacilityFairValueOfAmountOutstanding_BFDC0E8C1A83C56932D3D220AF871E5A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtIssuanceCostsLineOfCreditArrangementsGross" xlink:label="loc_us-gaap_DebtIssuanceCostsLineOfCreditArrangementsGross_8AA7744EC867A758927BD220AF8702EA" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_us-gaap_DebtIssuanceCostsLineOfCreditArrangementsGross_8AA7744EC867A758927BD220AF8702EA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AmortizationOfFinancingCosts" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_D0E8981564BEE370067FD220AF87CBD4" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_D0E8981564BEE370067FD220AF87CBD4" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_DebtInstrumentRequiredCoverageRatio" xlink:label="loc_nx_DebtInstrumentRequiredCoverageRatio_178999F4B66EF9575211D220AF884651" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_nx_DebtInstrumentRequiredCoverageRatio_178999F4B66EF9575211D220AF884651" 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_F2507640DF5B3CD02F7ED220AF88A85F" xlink:type="locator" />
    <link:definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_us-gaap_LineOfCredit_F2507640DF5B3CD02F7ED220AF88A85F" 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_0222BEB449EA19AB6011D220AF89664B" xlink:type="locator" />
    <link:definitionArc order="20" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_0222BEB449EA19AB6011D220AF89664B" 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_B8CAC48BB49D98A1878CD220AF89B223" xlink:type="locator" />
    <link:definitionArc order="21" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_B8CAC48BB49D98A1878CD220AF89B223" 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_C7EBB85DD0471320A4C0D220AF898557" xlink:type="locator" />
    <link:definitionArc order="22" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_us-gaap_DebtAndCapitalLeaseObligations_C7EBB85DD0471320A4C0D220AF898557" 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_C8EEEB626B2F5941649FD220AF8ABFF0" xlink:type="locator" />
    <link:definitionArc order="23" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_C8EEEB626B2F5941649FD220AF8ABFF0" 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_A971B562AFBF79FD5C9DD220AF8ABF0B" xlink:type="locator" />
    <link:definitionArc order="24" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_us-gaap_DebtInstrumentInterestRateDuringPeriod_A971B562AFBF79FD5C9DD220AF8ABF0B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CapitalLeaseObligationsIncurred" xlink:label="loc_us-gaap_CapitalLeaseObligationsIncurred_DF405BDCC09A71C4A95BD220AF8BB354" xlink:type="locator" />
    <link:definitionArc order="25" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_us-gaap_CapitalLeaseObligationsIncurred_DF405BDCC09A71C4A95BD220AF8BB354" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_CapitalLeasesinPropertyPlantandEquipment" xlink:label="loc_nx_CapitalLeasesinPropertyPlantandEquipment_855E008CE13BB1D04CDFD220AF8BBE45" xlink:type="locator" />
    <link:definitionArc order="26" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_nx_CapitalLeasesinPropertyPlantandEquipment_855E008CE13BB1D04CDFD220AF8BBE45" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_Capitalleasesinaccumulateddepreciation" xlink:label="loc_nx_Capitalleasesinaccumulateddepreciation_0A979A3FCB35DD86D358D220AF8B9041" xlink:type="locator" />
    <link:definitionArc order="27" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_nx_Capitalleasesinaccumulateddepreciation_0A979A3FCB35DD86D358D220AF8B9041" 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_F258B4BFBE0B4AF95C75D220AF8BE620" xlink:type="locator" />
    <link:definitionArc order="28" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_05EB44F6FC8244367D18D220AF838029" xlink:to="loc_us-gaap_LongtermDebtWeightedAverageInterestRate_F258B4BFBE0B4AF95C75D220AF8BE620" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/DebtAndCapitalLeaseObligationsScheduleOfApplicableMarginsAndCommitmentFeesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentLineItems" xlink:label="loc_us-gaap_DebtInstrumentLineItems_1717CD2F8FA682C79F3F9381CA31F902" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentTable" xlink:label="loc_us-gaap_DebtInstrumentTable_3BF2CC663C8BD61A6D5D9381CA210B72" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1717CD2F8FA682C79F3F9381CA31F902" xlink:to="loc_us-gaap_DebtInstrumentTable_3BF2CC663C8BD61A6D5D9381CA210B72" 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_CreditFacilityAxis" xlink:label="loc_us-gaap_CreditFacilityAxis_D7CF99999DEF73E6A7F19381CA21F2DB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_3BF2CC663C8BD61A6D5D9381CA210B72" xlink:to="loc_us-gaap_CreditFacilityAxis_D7CF99999DEF73E6A7F19381CA21F2DB" 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_0F3E0DB00B63EE18A2DE9381CA214D91_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_D7CF99999DEF73E6A7F19381CA21F2DB" xlink:to="loc_us-gaap_CreditFacilityDomain_0F3E0DB00B63EE18A2DE9381CA214D91_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_0F3E0DB00B63EE18A2DE9381CA214D91" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_D7CF99999DEF73E6A7F19381CA21F2DB" xlink:to="loc_us-gaap_CreditFacilityDomain_0F3E0DB00B63EE18A2DE9381CA214D91" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_A2016CreditAgreementMember" xlink:label="loc_nx_A2016CreditAgreementMember_D9FD86BE6AE8B58A39659381CA21EEBA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_0F3E0DB00B63EE18A2DE9381CA214D91" xlink:to="loc_nx_A2016CreditAgreementMember_D9FD86BE6AE8B58A39659381CA21EEBA" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_A2018CreditFacilityMember" xlink:label="loc_nx_A2018CreditFacilityMember_F59B21453358D7C91F819381CA210B44" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_0F3E0DB00B63EE18A2DE9381CA214D91" xlink:to="loc_nx_A2018CreditFacilityMember_F59B21453358D7C91F819381CA210B44" 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_716E73ECEB9CE2DD2F039381CA214F4E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_3BF2CC663C8BD61A6D5D9381CA210B72" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_716E73ECEB9CE2DD2F039381CA214F4E" 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_815D6EB5BA8E8D6169969381CA21633B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_716E73ECEB9CE2DD2F039381CA214F4E" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_815D6EB5BA8E8D6169969381CA21633B_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_815D6EB5BA8E8D6169969381CA21633B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_716E73ECEB9CE2DD2F039381CA214F4E" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_815D6EB5BA8E8D6169969381CA21633B" 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_8C20440E78E67C6D03AD9381CA219CD8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_815D6EB5BA8E8D6169969381CA21633B" xlink:to="loc_us-gaap_LineOfCreditMember_8C20440E78E67C6D03AD9381CA219CD8" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_InterestRateScenarioAxis" xlink:label="loc_nx_InterestRateScenarioAxis_41530519A84BDF2FE8889381CA31F20E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_3BF2CC663C8BD61A6D5D9381CA210B72" xlink:to="loc_nx_InterestRateScenarioAxis_41530519A84BDF2FE8889381CA31F20E" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_InterestRateScenarioDomain" xlink:label="loc_nx_InterestRateScenarioDomain_3EF3B5320C031811E0399381CA3102C6_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_nx_InterestRateScenarioAxis_41530519A84BDF2FE8889381CA31F20E" xlink:to="loc_nx_InterestRateScenarioDomain_3EF3B5320C031811E0399381CA3102C6_default" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_InterestRateScenarioDomain" xlink:label="loc_nx_InterestRateScenarioDomain_3EF3B5320C031811E0399381CA3102C6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_nx_InterestRateScenarioAxis_41530519A84BDF2FE8889381CA31F20E" xlink:to="loc_nx_InterestRateScenarioDomain_3EF3B5320C031811E0399381CA3102C6" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_LessThanOneandOneHalfLeverageRatioMember" xlink:label="loc_nx_LessThanOneandOneHalfLeverageRatioMember_F419D13D7E378697B78D9381CA31DBE6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_InterestRateScenarioDomain_3EF3B5320C031811E0399381CA3102C6" xlink:to="loc_nx_LessThanOneandOneHalfLeverageRatioMember_F419D13D7E378697B78D9381CA31DBE6" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_BetweenOneandOneHalfandTwoandOneQuarterLeverageRatioMember" xlink:label="loc_nx_BetweenOneandOneHalfandTwoandOneQuarterLeverageRatioMember_A66F3BF73415DCBCE1DB9381CA3199F4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_InterestRateScenarioDomain_3EF3B5320C031811E0399381CA3102C6" xlink:to="loc_nx_BetweenOneandOneHalfandTwoandOneQuarterLeverageRatioMember_A66F3BF73415DCBCE1DB9381CA3199F4" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_BetweenTwoandOneQuarterandThreeLeverageRatioMember" xlink:label="loc_nx_BetweenTwoandOneQuarterandThreeLeverageRatioMember_4425265F29F11CEE46D89381CA315266" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_InterestRateScenarioDomain_3EF3B5320C031811E0399381CA3102C6" xlink:to="loc_nx_BetweenTwoandOneQuarterandThreeLeverageRatioMember_4425265F29F11CEE46D89381CA315266" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_GreaterThanThreeLeverageRatioMember" xlink:label="loc_nx_GreaterThanThreeLeverageRatioMember_B355091B20BDA909119B9381CA31606E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_InterestRateScenarioDomain_3EF3B5320C031811E0399381CA3102C6" xlink:to="loc_nx_GreaterThanThreeLeverageRatioMember_B355091B20BDA909119B9381CA31606E" 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_C17329A00E8D02D20C319381CA31AF29" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_3BF2CC663C8BD61A6D5D9381CA210B72" xlink:to="loc_us-gaap_VariableRateAxis_C17329A00E8D02D20C319381CA31AF29" 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_F2AF85EFE0AB35BF538B9381CA31D0F2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_C17329A00E8D02D20C319381CA31AF29" xlink:to="loc_us-gaap_VariableRateDomain_F2AF85EFE0AB35BF538B9381CA31D0F2_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_F2AF85EFE0AB35BF538B9381CA31D0F2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_C17329A00E8D02D20C319381CA31AF29" xlink:to="loc_us-gaap_VariableRateDomain_F2AF85EFE0AB35BF538B9381CA31D0F2" 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_AAE7BA6C478C5AED01C09381CA315090" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_F2AF85EFE0AB35BF538B9381CA31D0F2" xlink:to="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_AAE7BA6C478C5AED01C09381CA315090" 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_47593FB01BEAF31A323D9381CA317117" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_F2AF85EFE0AB35BF538B9381CA31D0F2" xlink:to="loc_us-gaap_BaseRateMember_47593FB01BEAF31A323D9381CA317117" 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_620EB7AB55135CA305399381CA318C31" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1717CD2F8FA682C79F3F9381CA31F902" xlink:to="loc_us-gaap_LineOfCreditFacilityCommitmentFeePercentage_620EB7AB55135CA305399381CA318C31" 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_7483EA88F3CBD69149DF9381CA31D122" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1717CD2F8FA682C79F3F9381CA31F902" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_7483EA88F3CBD69149DF9381CA31D122" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_DebtInstrumentRequiredLeverageRatio" xlink:label="loc_nx_DebtInstrumentRequiredLeverageRatio_57A0DFA2B5FEF28D2A1A9381CA316DAC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1717CD2F8FA682C79F3F9381CA31F902" xlink:to="loc_nx_DebtInstrumentRequiredLeverageRatio_57A0DFA2B5FEF28D2A1A9381CA316DAC" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/DebtAndCapitalLeaseObligationsScheduleOfDebtMaturitiesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/DebtAndCapitalLeaseObligationsScheduleOfDebtObligationsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentLineItems" xlink:label="loc_us-gaap_DebtInstrumentLineItems_0B9523BDE9F12066D1BFD222F9EBE1EE" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentTable" xlink:label="loc_us-gaap_DebtInstrumentTable_595345341BE1397C828ED222F9EAFF2F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_0B9523BDE9F12066D1BFD222F9EBE1EE" xlink:to="loc_us-gaap_DebtInstrumentTable_595345341BE1397C828ED222F9EAFF2F" 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_LongtermDebtTypeAxis" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_01E016F764A10F4E6AA0D222F9EA6537" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_595345341BE1397C828ED222F9EAFF2F" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_01E016F764A10F4E6AA0D222F9EA6537" 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_4344601238D968338130D222F9EA3587_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_01E016F764A10F4E6AA0D222F9EA6537" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_4344601238D968338130D222F9EA3587_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_4344601238D968338130D222F9EA3587" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_01E016F764A10F4E6AA0D222F9EA6537" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_4344601238D968338130D222F9EA3587" 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_DA00DBFDF90C45CDB95AD222F9EB1358" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_4344601238D968338130D222F9EA3587" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_DA00DBFDF90C45CDB95AD222F9EB1358" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_CapitalLeaseObligationsAndOtherMember" xlink:label="loc_nx_CapitalLeaseObligationsAndOtherMember_07512C35368A6252A032D222F9EB9221" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_4344601238D968338130D222F9EA3587" xlink:to="loc_nx_CapitalLeaseObligationsAndOtherMember_07512C35368A6252A032D222F9EB9221" 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_F13D3E232F4C96501878D222F9EB073D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_0B9523BDE9F12066D1BFD222F9EBE1EE" xlink:to="loc_us-gaap_DebtAndCapitalLeaseObligations_F13D3E232F4C96501878D222F9EB073D" 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_369B35131E94282ABF94D222F9EC81AD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_0B9523BDE9F12066D1BFD222F9EBE1EE" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_369B35131E94282ABF94D222F9EC81AD" 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_2383738C15FC9536B7F3D222F9ECBA8B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_0B9523BDE9F12066D1BFD222F9EBE1EE" xlink:to="loc_us-gaap_LineOfCredit_2383738C15FC9536B7F3D222F9ECBA8B" 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_7790289A4CE79F442686D222F9EC3EC3" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_0B9523BDE9F12066D1BFD222F9EBE1EE" xlink:to="loc_us-gaap_DeferredFinanceCostsOwnshareLendingArrangementIssuanceCostsNet_7790289A4CE79F442686D222F9EC3EC3" 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_10867028C1DAE896D86FD222F9EC78F3" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_0B9523BDE9F12066D1BFD222F9EBE1EE" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_10867028C1DAE896D86FD222F9EC78F3" 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_FD12142A46E0C91D8C2BD222F9EDC94D" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_0B9523BDE9F12066D1BFD222F9EBE1EE" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_FD12142A46E0C91D8C2BD222F9EDC94D" 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_59561D5EC808784B9A5290E91F826645" 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_79E75983ADCB7D87976790E91F813320" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_59561D5EC808784B9A5290E91F826645" xlink:to="loc_us-gaap_DerivativeTable_79E75983ADCB7D87976790E91F813320" 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_BBE11BF19773841A8C0090E91F81F752" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_79E75983ADCB7D87976790E91F813320" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_BBE11BF19773841A8C0090E91F81F752" 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_26F1FEBC2C03331260A390E91F825151_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_BBE11BF19773841A8C0090E91F81F752" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_26F1FEBC2C03331260A390E91F825151_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_26F1FEBC2C03331260A390E91F825151" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_BBE11BF19773841A8C0090E91F81F752" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_26F1FEBC2C03331260A390E91F825151" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_OtherNonOperatingIncomeLossMember" xlink:label="loc_nx_OtherNonOperatingIncomeLossMember_63764188414A9FC3C7B390E91F827A34" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_26F1FEBC2C03331260A390E91F825151" xlink:to="loc_nx_OtherNonOperatingIncomeLossMember_63764188414A9FC3C7B390E91F827A34" 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_CC1CAF7C188AD00F390B90E91F8203F6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_59561D5EC808784B9A5290E91F826645" xlink:to="loc_us-gaap_GainLossOnForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstruments_CC1CAF7C188AD00F390B90E91F8203F6" 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_78D130DCEA0C8B40423590E91F84DF37" 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_A52A3543BC741909ED0590E91F83D044" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_78D130DCEA0C8B40423590E91F84DF37" xlink:to="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_A52A3543BC741909ED0590E91F83D044" 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_E9A9ADAD80C6A7649A6F90E91F8333B1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_A52A3543BC741909ED0590E91F83D044" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_E9A9ADAD80C6A7649A6F90E91F8333B1" 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_9EA7CBBBB5E6AE91C12D90E91F83C469_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_E9A9ADAD80C6A7649A6F90E91F8333B1" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_9EA7CBBBB5E6AE91C12D90E91F83C469_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_9EA7CBBBB5E6AE91C12D90E91F83C469" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_E9A9ADAD80C6A7649A6F90E91F8333B1" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_9EA7CBBBB5E6AE91C12D90E91F83C469" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_PrepaidAndOtherCurrentAssetsMember" xlink:label="loc_nx_PrepaidAndOtherCurrentAssetsMember_E046A1DB61056217F44B90E91F846ABB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_9EA7CBBBB5E6AE91C12D90E91F83C469" xlink:to="loc_nx_PrepaidAndOtherCurrentAssetsMember_E046A1DB61056217F44B90E91F846ABB" 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_2264DB9DC8924A563B4990E91F84E215" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_9EA7CBBBB5E6AE91C12D90E91F83C469" xlink:to="loc_us-gaap_AccruedLiabilitiesMember_2264DB9DC8924A563B4990E91F84E215" 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_8493C2D0DFDB8F40C8C390E91F84A34B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_78D130DCEA0C8B40423590E91F84DF37" xlink:to="loc_us-gaap_ForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsAssetAtFairValue_8493C2D0DFDB8F40C8C390E91F84A34B" 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_B623D6C179178FF62EDA90E91F849DF5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_78D130DCEA0C8B40423590E91F84DF37" xlink:to="loc_us-gaap_ForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsLiabilityAtFairValue_B623D6C179178FF62EDA90E91F849DF5" 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_CB2BADC921CBE615730990E91F87DCCE" xlink:type="locator" />
    <link:loc xlink:href="nx-20191031.xsd#nx_DerivativeInstrumentsAndFairValueTable" xlink:label="loc_nx_DerivativeInstrumentsAndFairValueTable_33E654DA34D1960D68EA90E91F85D1C3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_CB2BADC921CBE615730990E91F87DCCE" xlink:to="loc_nx_DerivativeInstrumentsAndFairValueTable_33E654DA34D1960D68EA90E91F85D1C3" 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_B5576C0AACD5C5451E5C90E91F8541CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_nx_DerivativeInstrumentsAndFairValueTable_33E654DA34D1960D68EA90E91F85D1C3" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_B5576C0AACD5C5451E5C90E91F8541CD" 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_F6EFFCB89D4A01C8810B90E91F8553E7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_B5576C0AACD5C5451E5C90E91F8541CD" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_F6EFFCB89D4A01C8810B90E91F8553E7_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_F6EFFCB89D4A01C8810B90E91F8553E7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_B5576C0AACD5C5451E5C90E91F8541CD" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_F6EFFCB89D4A01C8810B90E91F8553E7" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_SellEURMember" xlink:label="loc_nx_SellEURMember_503882CEA07F83B79BF490E91F8647C8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_F6EFFCB89D4A01C8810B90E91F8553E7" xlink:to="loc_nx_SellEURMember_503882CEA07F83B79BF490E91F8647C8" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_SellCADMember" xlink:label="loc_nx_SellCADMember_B4C8890E5ECD77877DF190E91F86F037" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_F6EFFCB89D4A01C8810B90E91F8553E7" xlink:to="loc_nx_SellCADMember_B4C8890E5ECD77877DF190E91F86F037" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_SellGBPMember" xlink:label="loc_nx_SellGBPMember_6E4DBAC36C3D1800395A90E91F867697" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_F6EFFCB89D4A01C8810B90E91F8553E7" xlink:to="loc_nx_SellGBPMember_6E4DBAC36C3D1800395A90E91F867697" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_BuyEurSellGbpMember" xlink:label="loc_nx_BuyEurSellGbpMember_8608A811E9C537C2961D90E91F86518F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_F6EFFCB89D4A01C8810B90E91F8553E7" xlink:to="loc_nx_BuyEurSellGbpMember_8608A811E9C537C2961D90E91F86518F" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_BuyUSDSellEURMember" xlink:label="loc_nx_BuyUSDSellEURMember_54C7E76DAFD4A80BC7AE90E91F86CBE0" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_F6EFFCB89D4A01C8810B90E91F8553E7" xlink:to="loc_nx_BuyUSDSellEURMember_54C7E76DAFD4A80BC7AE90E91F86CBE0" 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_07FEC134F11584647A1590E91F878D8B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_CB2BADC921CBE615730990E91F87DCCE" xlink:to="loc_invest_DerivativeNotionalAmount_07FEC134F11584647A1590E91F878D8B" 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_B980658BD5FB75B101F490E91F877652" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_CB2BADC921CBE615730990E91F87DCCE" xlink:to="loc_us-gaap_ForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsAtFairValueNet_B980658BD5FB75B101F490E91F877652" 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:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityInformationLineItems" xlink:label="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:type="locator" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntitiesTable" xlink:label="loc_dei_EntitiesTable_3F0BBA1541AA780FEE3FD284E60DEC30" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_EntitiesTable_3F0BBA1541AA780FEE3FD284E60DEC30" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_A6156E43DE175A05B531D284E60E493E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_EntitiesTable_3F0BBA1541AA780FEE3FD284E60DEC30" xlink:to="loc_dei_LegalEntityAxis_A6156E43DE175A05B531D284E60E493E" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_59E64C5FBCEE4F6F356DD284E60E3FCA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_A6156E43DE175A05B531D284E60E493E" xlink:to="loc_dei_EntityDomain_59E64C5FBCEE4F6F356DD284E60E3FCA_default" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_59E64C5FBCEE4F6F356DD284E60E3FCA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_A6156E43DE175A05B531D284E60E493E" xlink:to="loc_dei_EntityDomain_59E64C5FBCEE4F6F356DD284E60E3FCA" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentType" xlink:label="loc_dei_DocumentType_4A67CEB7059642BFECEDD284E613E5A2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_DocumentType_4A67CEB7059642BFECEDD284E613E5A2" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentAnnualReport" xlink:label="loc_dei_DocumentAnnualReport_C26F7DD5A96E56F72064D284E613DF02" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_DocumentAnnualReport_C26F7DD5A96E56F72064D284E613DF02" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentPeriodEndDate" xlink:label="loc_dei_DocumentPeriodEndDate_DCEFFEB49225B8BCD42FD284E6134571" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_DocumentPeriodEndDate_DCEFFEB49225B8BCD42FD284E6134571" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentTransitionReport" xlink:label="loc_dei_DocumentTransitionReport_5CE836C1EC32585A7B55D284E612F492" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_DocumentTransitionReport_5CE836C1EC32585A7B55D284E612F492" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityFileNumber" xlink:label="loc_dei_EntityFileNumber_9050E90553FC6E2B4F50D284E613B3B1" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_EntityFileNumber_9050E90553FC6E2B4F50D284E613B3B1" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityRegistrantName" xlink:label="loc_dei_EntityRegistrantName_66EB21058313D514442CD284E6145024" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_EntityRegistrantName_66EB21058313D514442CD284E6145024" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityIncorporationStateCountryCode" xlink:label="loc_dei_EntityIncorporationStateCountryCode_A2D8D6DF61A57603C871D284E612EC45" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_EntityIncorporationStateCountryCode_A2D8D6DF61A57603C871D284E612EC45" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityTaxIdentificationNumber" xlink:label="loc_dei_EntityTaxIdentificationNumber_0208574659B5CB498107D284E618A3B4" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_EntityTaxIdentificationNumber_0208574659B5CB498107D284E618A3B4" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityAddressAddressLine1" xlink:label="loc_dei_EntityAddressAddressLine1_EC47349ED637AFA3123AD284E6147B19" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_EntityAddressAddressLine1_EC47349ED637AFA3123AD284E6147B19" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityAddressAddressLine2" xlink:label="loc_dei_EntityAddressAddressLine2_C989D0728064AAB89625D284E6147516" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_EntityAddressAddressLine2_C989D0728064AAB89625D284E6147516" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityAddressCityOrTown" xlink:label="loc_dei_EntityAddressCityOrTown_5AE6479ED847A9022E8AD284E6154D78" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_EntityAddressCityOrTown_5AE6479ED847A9022E8AD284E6154D78" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityAddressStateOrProvince" xlink:label="loc_dei_EntityAddressStateOrProvince_8F867C0F60AC355B599FD284E6159AAA" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_EntityAddressStateOrProvince_8F867C0F60AC355B599FD284E6159AAA" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityAddressPostalZipCode" xlink:label="loc_dei_EntityAddressPostalZipCode_4579E952EF6A20C4826DD284E6158AF2" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_EntityAddressPostalZipCode_4579E952EF6A20C4826DD284E6158AF2" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_CityAreaCode" xlink:label="loc_dei_CityAreaCode_E96574B63A25C4CEE581D284E6156F45" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_CityAreaCode_E96574B63A25C4CEE581D284E6156F45" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_LocalPhoneNumber" xlink:label="loc_dei_LocalPhoneNumber_EF337BBA3E60E2ED9BDAD284E61600D1" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_LocalPhoneNumber_EF337BBA3E60E2ED9BDAD284E61600D1" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_Security12bTitle" xlink:label="loc_dei_Security12bTitle_65339D3E8AC8A3BE282BD284E60FA18C" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_Security12bTitle_65339D3E8AC8A3BE282BD284E60FA18C" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_TradingSymbol" xlink:label="loc_dei_TradingSymbol_BCC06D20BD922303418BD284E616F0AA" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_TradingSymbol_BCC06D20BD922303418BD284E616F0AA" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_SecurityExchangeName" xlink:label="loc_dei_SecurityExchangeName_55AC06349FF16B6BA2D2D284E6199B54" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_SecurityExchangeName_55AC06349FF16B6BA2D2D284E6199B54" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityWellKnownSeasonedIssuer" xlink:label="loc_dei_EntityWellKnownSeasonedIssuer_D72EBBAC895E2146675BD284E61712EE" xlink:type="locator" />
    <link:definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_EntityWellKnownSeasonedIssuer_D72EBBAC895E2146675BD284E61712EE" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityVoluntaryFilers" xlink:label="loc_dei_EntityVoluntaryFilers_F15F5C4E7B06578FFE10D284E61893C0" xlink:type="locator" />
    <link:definitionArc order="20" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_EntityVoluntaryFilers_F15F5C4E7B06578FFE10D284E61893C0" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityCurrentReportingStatus" xlink:label="loc_dei_EntityCurrentReportingStatus_CD660C83A7493DEE5B88D284E61833CF" xlink:type="locator" />
    <link:definitionArc order="21" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_EntityCurrentReportingStatus_CD660C83A7493DEE5B88D284E61833CF" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityInteractiveDataCurrent" xlink:label="loc_dei_EntityInteractiveDataCurrent_E9D26FDD02101D35FC4CD284E6182F7C" xlink:type="locator" />
    <link:definitionArc order="22" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_EntityInteractiveDataCurrent_E9D26FDD02101D35FC4CD284E6182F7C" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityFilerCategory" xlink:label="loc_dei_EntityFilerCategory_587D690409FDC819EA3DD284E616791A" xlink:type="locator" />
    <link:definitionArc order="23" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_EntityFilerCategory_587D690409FDC819EA3DD284E616791A" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntitySmallBusiness" xlink:label="loc_dei_EntitySmallBusiness_349240CFD91FFC1C2F53D284E64B41AD" xlink:type="locator" />
    <link:definitionArc order="24" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_EntitySmallBusiness_349240CFD91FFC1C2F53D284E64B41AD" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityEmergingGrowthCompany" xlink:label="loc_dei_EntityEmergingGrowthCompany_C4381F8503A86D17A3A8D2853C32A09A" xlink:type="locator" />
    <link:definitionArc order="25" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_EntityEmergingGrowthCompany_C4381F8503A86D17A3A8D2853C32A09A" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityShellCompany" xlink:label="loc_dei_EntityShellCompany_6EC88EB0C63C911C00C6D284E618C018" xlink:type="locator" />
    <link:definitionArc order="26" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_EntityShellCompany_6EC88EB0C63C911C00C6D284E618C018" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityPublicFloat" xlink:label="loc_dei_EntityPublicFloat_99275EF753FDC1A5D3DCD284E618389C" xlink:type="locator" />
    <link:definitionArc order="27" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_EntityPublicFloat_99275EF753FDC1A5D3DCD284E618389C" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityCommonStockSharesOutstanding" xlink:label="loc_dei_EntityCommonStockSharesOutstanding_2444199E9226BD124515D284E6177774" xlink:type="locator" />
    <link:definitionArc order="28" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_EntityCommonStockSharesOutstanding_2444199E9226BD124515D284E6177774" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentFiscalYearFocus" xlink:label="loc_dei_DocumentFiscalYearFocus_D08885276E23615BAF28D284E616F76C" xlink:type="locator" />
    <link:definitionArc order="29" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_DocumentFiscalYearFocus_D08885276E23615BAF28D284E616F76C" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentFiscalPeriodFocus" xlink:label="loc_dei_DocumentFiscalPeriodFocus_503D78B260A0F5A28708D284E617C6A5" xlink:type="locator" />
    <link:definitionArc order="30" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_DocumentFiscalPeriodFocus_503D78B260A0F5A28708D284E617C6A5" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_AmendmentFlag" xlink:label="loc_dei_AmendmentFlag_752B19F40184D05F9DFBD284E6176E10" xlink:type="locator" />
    <link:definitionArc order="31" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_AmendmentFlag_752B19F40184D05F9DFBD284E6176E10" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityCentralIndexKey" xlink:label="loc_dei_EntityCentralIndexKey_A3F00EEE123DED90EC7BD284E6163AA4" xlink:type="locator" />
    <link:definitionArc order="32" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_EntityCentralIndexKey_A3F00EEE123DED90EC7BD284E6163AA4" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_CurrentFiscalYearEndDate" xlink:label="loc_dei_CurrentFiscalYearEndDate_46311519E7FD737E0D9CD284E6162274" xlink:type="locator" />
    <link:definitionArc order="33" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_58F75B7CA422704EC4EDD284E60E5FC1" xlink:to="loc_dei_CurrentFiscalYearEndDate_46311519E7FD737E0D9CD284E6162274" xlink:type="arc" />
  </link:definitionLink>
  <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-20191031.xsd#nx_EarningsPerShareDisclosureLineItems" xlink:label="loc_nx_EarningsPerShareDisclosureLineItems_A26FC23BED357BEB2B648A24340CBCDB" xlink:type="locator" />
    <link:loc xlink:href="nx-20191031.xsd#nx_EarningsPerShareDisclosureTable" xlink:label="loc_nx_EarningsPerShareDisclosureTable_09373845B86E8872C2DE8A24340C8312" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_A26FC23BED357BEB2B648A24340CBCDB" xlink:to="loc_nx_EarningsPerShareDisclosureTable_09373845B86E8872C2DE8A24340C8312" 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_37ADAAE75120856361778A24340CAAA7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_nx_EarningsPerShareDisclosureTable_09373845B86E8872C2DE8A24340C8312" xlink:to="loc_us-gaap_AwardTypeAxis_37ADAAE75120856361778A24340CAAA7" 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_C4223402362BA11EAFF98A24340C213F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_37ADAAE75120856361778A24340CAAA7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_C4223402362BA11EAFF98A24340C213F_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_C4223402362BA11EAFF98A24340C213F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_37ADAAE75120856361778A24340CAAA7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_C4223402362BA11EAFF98A24340C213F" 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_3EC09625E877A66875FB8A24340C9FA2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_C4223402362BA11EAFF98A24340C213F" xlink:to="loc_us-gaap_PerformanceSharesMember_3EC09625E877A66875FB8A24340C9FA2" xlink:type="arc" />
    <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_C9C85CB78DBF9116D7B48A24340C7B8F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_nx_EarningsPerShareDisclosureTable_09373845B86E8872C2DE8A24340C8312" xlink:to="loc_us-gaap_StatementClassOfStockAxis_C9C85CB78DBF9116D7B48A24340C7B8F" 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_7288B2B759C6D7A372A48A24340C9F9A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_C9C85CB78DBF9116D7B48A24340C7B8F" xlink:to="loc_us-gaap_ClassOfStockDomain_7288B2B759C6D7A372A48A24340C9F9A_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_7288B2B759C6D7A372A48A24340C9F9A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_C9C85CB78DBF9116D7B48A24340C7B8F" xlink:to="loc_us-gaap_ClassOfStockDomain_7288B2B759C6D7A372A48A24340C9F9A" 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_C972FD5666326FB59EB58A24340C3CB8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_7288B2B759C6D7A372A48A24340C9F9A" xlink:to="loc_us-gaap_EmployeeStockOptionMember_C972FD5666326FB59EB58A24340C3CB8" 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_A70242246BC8750E76FE8A24340CFEBB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_7288B2B759C6D7A372A48A24340C9F9A" xlink:to="loc_us-gaap_RestrictedStockMember_A70242246BC8750E76FE8A24340CFEBB" 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_7330E48680FF38FCAD4A8A24340C04F0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_7288B2B759C6D7A372A48A24340C9F9A" xlink:to="loc_us-gaap_PerformanceSharesMember_7330E48680FF38FCAD4A8A24340C04F0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_4FE8067503B90205E0678A24340C28CB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_A26FC23BED357BEB2B648A24340CBCDB" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_4FE8067503B90205E0678A24340C28CB" 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_422FDC9A75321BCC53118A24340C1A08" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_A26FC23BED357BEB2B648A24340CBCDB" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_422FDC9A75321BCC53118A24340C1A08" 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_640670214E86F49445EB8A24340C2800" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_A26FC23BED357BEB2B648A24340CBCDB" xlink:to="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_640670214E86F49445EB8A24340C2800" 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_D390F25D3CBEC17A9EE98A24340CDD91" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_A26FC23BED357BEB2B648A24340CBCDB" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_D390F25D3CBEC17A9EE98A24340CDD91" 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_3E3B7FED59D7F3E42EBD8A24340C541C" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_A26FC23BED357BEB2B648A24340CBCDB" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsPerBasicShare_3E3B7FED59D7F3E42EBD8A24340C541C" 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_4165479BBE031DF1A1078A24341C2263" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_A26FC23BED357BEB2B648A24340CBCDB" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsPerDilutedShare_4165479BBE031DF1A1078A24341C2263" 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_C6CCD051F80270FEAA238A24341C79BD" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_A26FC23BED357BEB2B648A24340CBCDB" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_C6CCD051F80270FEAA238A24341C79BD" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/EarningsPerShareTables" 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_48DF8CC186D2DAB3DC4790E91F6778E1" 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_6FDF445A55C9548225D990E91F6625A2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_48DF8CC186D2DAB3DC4790E91F6778E1" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_6FDF445A55C9548225D990E91F6625A2" 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_5A274232A0D39015981390E91F667BA7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_6FDF445A55C9548225D990E91F6625A2" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_5A274232A0D39015981390E91F667BA7" 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_7D67CC291CC54C83DB2D90E91F66B15A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_5A274232A0D39015981390E91F667BA7" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7D67CC291CC54C83DB2D90E91F66B15A_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_7D67CC291CC54C83DB2D90E91F66B15A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_5A274232A0D39015981390E91F667BA7" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7D67CC291CC54C83DB2D90E91F66B15A" 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_5B647A55C254EAC7880490E91F66B22D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7D67CC291CC54C83DB2D90E91F66B15A" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_5B647A55C254EAC7880490E91F66B22D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssetsAbstract" xlink:label="loc_us-gaap_DerivativeAssetsAbstract_76DF90755FE88BF7481990E91F674221" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_48DF8CC186D2DAB3DC4790E91F6778E1" xlink:to="loc_us-gaap_DerivativeAssetsAbstract_76DF90755FE88BF7481990E91F674221" 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_405C5D70A0CB5657D2D990E91F670DA4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeAssetsAbstract_76DF90755FE88BF7481990E91F674221" xlink:to="loc_us-gaap_ForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsAssetAtFairValue_405C5D70A0CB5657D2D990E91F670DA4" 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_CCE5339CED2883E55B4790E91F67CABE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeAssetsAbstract_76DF90755FE88BF7481990E91F674221" xlink:to="loc_us-gaap_ForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsLiabilityAtFairValue_CCE5339CED2883E55B4790E91F67CABE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetsHeldForSaleLongLivedFairValueDisclosure" xlink:label="loc_us-gaap_AssetsHeldForSaleLongLivedFairValueDisclosure_EAB182F55EC0145D18CF90E91F683FAF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeAssetsAbstract_76DF90755FE88BF7481990E91F674221" xlink:to="loc_us-gaap_AssetsHeldForSaleLongLivedFairValueDisclosure_EAB182F55EC0145D18CF90E91F683FAF" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/GoodwillAndIntangibleAssets" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/GoodwillAndIntangibleAssetsDetail" 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_B171D4C586ADF254BDB6D2234FEA4103" 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_B0673A167C0CD9D14A59D2234FE1263E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_B171D4C586ADF254BDB6D2234FEA4103" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_B0673A167C0CD9D14A59D2234FE1263E" 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_B80FCA8DAFA1028085CDD2234FE16DF7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_B0673A167C0CD9D14A59D2234FE1263E" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_B80FCA8DAFA1028085CDD2234FE16DF7" 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_F3B2FD9C5D182143EBE1D2234FE1CE25_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_B80FCA8DAFA1028085CDD2234FE16DF7" xlink:to="loc_us-gaap_SegmentDomain_F3B2FD9C5D182143EBE1D2234FE1CE25_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_F3B2FD9C5D182143EBE1D2234FE1CE25" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_B80FCA8DAFA1028085CDD2234FE16DF7" xlink:to="loc_us-gaap_SegmentDomain_F3B2FD9C5D182143EBE1D2234FE1CE25" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_NAEngineeredComponentsMember" xlink:label="loc_nx_NAEngineeredComponentsMember_E97840074E13136775E1D2234FE1B2BD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_F3B2FD9C5D182143EBE1D2234FE1CE25" xlink:to="loc_nx_NAEngineeredComponentsMember_E97840074E13136775E1D2234FE1B2BD" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_NAEngineeredComponentsUnitOneMemberMember" xlink:label="loc_nx_NAEngineeredComponentsUnitOneMemberMember_122D1CDD049F0C798919D2234FE25C8E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_F3B2FD9C5D182143EBE1D2234FE1CE25" xlink:to="loc_nx_NAEngineeredComponentsUnitOneMemberMember_122D1CDD049F0C798919D2234FE25C8E" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_NAEngineeredComponentsUnitTwoMember" xlink:label="loc_nx_NAEngineeredComponentsUnitTwoMember_89E418B85F8E8748D3D4D2234FE2395B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_F3B2FD9C5D182143EBE1D2234FE1CE25" xlink:to="loc_nx_NAEngineeredComponentsUnitTwoMember_89E418B85F8E8748D3D4D2234FE2395B" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_EUEngineeredComponentsMember" xlink:label="loc_nx_EUEngineeredComponentsMember_3E3CE6F43411BB62BDD6D2234FE289D5" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_F3B2FD9C5D182143EBE1D2234FE1CE25" xlink:to="loc_nx_EUEngineeredComponentsMember_3E3CE6F43411BB62BDD6D2234FE289D5" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_EUEngineeredComponentsUnitOneMember" xlink:label="loc_nx_EUEngineeredComponentsUnitOneMember_B4356F810EF486FA5DB1D2234FE3943B" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_F3B2FD9C5D182143EBE1D2234FE1CE25" xlink:to="loc_nx_EUEngineeredComponentsUnitOneMember_B4356F810EF486FA5DB1D2234FE3943B" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_EUEngineeredComponentsUnitTwoMember" xlink:label="loc_nx_EUEngineeredComponentsUnitTwoMember_239F1ED78496DC8C7A7BD2234FE3E15E" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_F3B2FD9C5D182143EBE1D2234FE1CE25" xlink:to="loc_nx_EUEngineeredComponentsUnitTwoMember_239F1ED78496DC8C7A7BD2234FE3E15E" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_NACabinetComponentsMember" xlink:label="loc_nx_NACabinetComponentsMember_2FA42CEE94D75F2CF103D2234FE8A37C" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_F3B2FD9C5D182143EBE1D2234FE1CE25" xlink:to="loc_nx_NACabinetComponentsMember_2FA42CEE94D75F2CF103D2234FE8A37C" 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_220ABE4F026D66F38638D2234FE8EC81" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_B0673A167C0CD9D14A59D2234FE1263E" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_220ABE4F026D66F38638D2234FE8EC81" 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_CE7AF2CC7E3CF0739C7DD2234FE8D347_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_220ABE4F026D66F38638D2234FE8EC81" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_CE7AF2CC7E3CF0739C7DD2234FE8D347_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_CE7AF2CC7E3CF0739C7DD2234FE8D347" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_220ABE4F026D66F38638D2234FE8EC81" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_CE7AF2CC7E3CF0739C7DD2234FE8D347" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_WoodcraftMember" xlink:label="loc_nx_WoodcraftMember_BD0F2F0E85CA7AF55D66D2234FE9C492" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_CE7AF2CC7E3CF0739C7DD2234FE8D347" xlink:to="loc_nx_WoodcraftMember_BD0F2F0E85CA7AF55D66D2234FE9C492" xlink:type="arc" />
    <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_62C71149BA979A6090B8D2234FE9B86E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_B0673A167C0CD9D14A59D2234FE1263E" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_62C71149BA979A6090B8D2234FE9B86E" 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_3DB46960FB9567A8815CD2234FE9BF06_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_62C71149BA979A6090B8D2234FE9B86E" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_3DB46960FB9567A8815CD2234FE9BF06_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_3DB46960FB9567A8815CD2234FE9BF06" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_62C71149BA979A6090B8D2234FE9B86E" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_3DB46960FB9567A8815CD2234FE9BF06" 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_3834A78173297A3D75DCD2234FEA5C00" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_3DB46960FB9567A8815CD2234FE9BF06" xlink:to="loc_us-gaap_CustomerRelationshipsMember_3834A78173297A3D75DCD2234FEA5C00" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_TradenamesAndTrademarksMember" xlink:label="loc_nx_TradenamesAndTrademarksMember_08C2876D454E3C954211D2234FEAB52F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_3DB46960FB9567A8815CD2234FE9BF06" xlink:to="loc_nx_TradenamesAndTrademarksMember_08C2876D454E3C954211D2234FEAB52F" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_PatentsAndOtherTechnologyMember" xlink:label="loc_nx_PatentsAndOtherTechnologyMember_5BCFFDDC717BEC970F98D2234FEAB5F6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_3DB46960FB9567A8815CD2234FE9BF06" xlink:to="loc_nx_PatentsAndOtherTechnologyMember_5BCFFDDC717BEC970F98D2234FEAB5F6" 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_07CB3F8028119868CAE8D2234FEA5290" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_B171D4C586ADF254BDB6D2234FEA4103" xlink:to="loc_us-gaap_AssetImpairmentCharges_07CB3F8028119868CAE8D2234FEA5290" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_AdditionalAmortizationRestructuring" xlink:label="loc_nx_AdditionalAmortizationRestructuring_4F8C60CC526D655CB36AD2234FEB978E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_B171D4C586ADF254BDB6D2234FEA4103" xlink:to="loc_nx_AdditionalAmortizationRestructuring_4F8C60CC526D655CB36AD2234FEB978E" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_NumberofReportableUnitswithGoodwillBalances" xlink:label="loc_nx_NumberofReportableUnitswithGoodwillBalances_8EA0CA29BC940F403B0CD2234FEB688C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_B171D4C586ADF254BDB6D2234FEA4103" xlink:to="loc_nx_NumberofReportableUnitswithGoodwillBalances_8EA0CA29BC940F403B0CD2234FEB688C" 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_54C990BEA406DC62DA09D2234FEBF97B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_B171D4C586ADF254BDB6D2234FEA4103" xlink:to="loc_us-gaap_Goodwill_54C990BEA406DC62DA09D2234FEBF97B" 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_18BE93B91D30F4078946D2234FEB7643" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_B171D4C586ADF254BDB6D2234FEA4103" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_18BE93B91D30F4078946D2234FEB7643" 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_E970EC8EBED3D1211407D2234FEB0355" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_B171D4C586ADF254BDB6D2234FEA4103" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_E970EC8EBED3D1211407D2234FEB0355" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife" xlink:label="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_5850C27FE90508C0A3BED2234FEC82A6" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_B171D4C586ADF254BDB6D2234FEA4103" xlink:to="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_5850C27FE90508C0A3BED2234FEC82A6" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_Retirementoffullyamortizedintangibleassets" xlink:label="loc_nx_Retirementoffullyamortizedintangibleassets_AAB5DB664D44D7BD1715D2234FEC50CD" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_B171D4C586ADF254BDB6D2234FEA4103" xlink:to="loc_nx_Retirementoffullyamortizedintangibleassets_AAB5DB664D44D7BD1715D2234FEC50CD" 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_7325E9AC76CBC353B1CAD2234FEC9011" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_B171D4C586ADF254BDB6D2234FEA4103" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_7325E9AC76CBC353B1CAD2234FEC9011" 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/IncomeTaxTables" 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_520844FF58A9EF8B6DD6D74D9E6DCE06" 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_3D57AC7E72EC1F7572C6D74D9E53FF9B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_520844FF58A9EF8B6DD6D74D9E6DCE06" xlink:to="loc_us-gaap_IncomeTaxExaminationTable_3D57AC7E72EC1F7572C6D74D9E53FF9B" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_C19C669AE55061C6A97FD74D9E58CA80" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxExaminationTable_3D57AC7E72EC1F7572C6D74D9E53FF9B" xlink:to="loc_dei_LegalEntityAxis_C19C669AE55061C6A97FD74D9E58CA80" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_F553C0B51B33E0A2A1F9D74D9E58EFF8_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_C19C669AE55061C6A97FD74D9E58CA80" xlink:to="loc_dei_EntityDomain_F553C0B51B33E0A2A1F9D74D9E58EFF8_default" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_F553C0B51B33E0A2A1F9D74D9E58EFF8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_C19C669AE55061C6A97FD74D9E58CA80" xlink:to="loc_dei_EntityDomain_F553C0B51B33E0A2A1F9D74D9E58EFF8" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_HLPMember" xlink:label="loc_nx_HLPMember_D66DFE720D394B07FDF6D74D9E59991E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_F553C0B51B33E0A2A1F9D74D9E58EFF8" xlink:to="loc_nx_HLPMember_D66DFE720D394B07FDF6D74D9E59991E" 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_8396FF2B4316794330C5D74D9E5F8242" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxExaminationTable_3D57AC7E72EC1F7572C6D74D9E53FF9B" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_8396FF2B4316794330C5D74D9E5F8242" 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_D378FB079A48B60D9019D74D9E5F81FD_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_8396FF2B4316794330C5D74D9E5F8242" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D378FB079A48B60D9019D74D9E5F81FD_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_D378FB079A48B60D9019D74D9E5F81FD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_8396FF2B4316794330C5D74D9E5F8242" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D378FB079A48B60D9019D74D9E5F81FD" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_WoodcraftMember" xlink:label="loc_nx_WoodcraftMember_B5B2871E1266414523A6D74D9E60B981" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D378FB079A48B60D9019D74D9E5F81FD" xlink:to="loc_nx_WoodcraftMember_B5B2871E1266414523A6D74D9E60B981" 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_D0B4A1C273A0A11E06CBD74D9E61BF60" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxExaminationTable_3D57AC7E72EC1F7572C6D74D9E53FF9B" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_D0B4A1C273A0A11E06CBD74D9E61BF60" 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_74866CE0A952FA29FCB2D74D9E63E1D4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_D0B4A1C273A0A11E06CBD74D9E61BF60" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_74866CE0A952FA29FCB2D74D9E63E1D4_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_74866CE0A952FA29FCB2D74D9E63E1D4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_D0B4A1C273A0A11E06CBD74D9E61BF60" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_74866CE0A952FA29FCB2D74D9E63E1D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InternalRevenueServiceIRSMember" xlink:label="loc_us-gaap_InternalRevenueServiceIRSMember_F86EAD55E64537078EF0D74D9E636C33" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_74866CE0A952FA29FCB2D74D9E63E1D4" xlink:to="loc_us-gaap_InternalRevenueServiceIRSMember_F86EAD55E64537078EF0D74D9E636C33" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StateAndLocalJurisdictionMember" xlink:label="loc_us-gaap_StateAndLocalJurisdictionMember_AE9E6E997252DDF7BFF6D74D9E63010F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_74866CE0A952FA29FCB2D74D9E63E1D4" xlink:to="loc_us-gaap_StateAndLocalJurisdictionMember_AE9E6E997252DDF7BFF6D74D9E63010F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DomesticCountryMember" xlink:label="loc_us-gaap_DomesticCountryMember_4832803041DF3F01F5DAD74D9E6449D6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_74866CE0A952FA29FCB2D74D9E63E1D4" xlink:to="loc_us-gaap_DomesticCountryMember_4832803041DF3F01F5DAD74D9E6449D6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_92B717347353963D20E1D753D7B4D00A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_520844FF58A9EF8B6DD6D74D9E6DCE06" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_92B717347353963D20E1D753D7B4D00A" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_TaxCutsandJobsActof2017ExcessTaxBenefits" xlink:label="loc_nx_TaxCutsandJobsActof2017ExcessTaxBenefits_33FADA4983CA65AB94F0D74D9E6EB0C9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_520844FF58A9EF8B6DD6D74D9E6DCE06" xlink:to="loc_nx_TaxCutsandJobsActof2017ExcessTaxBenefits_33FADA4983CA65AB94F0D74D9E6EB0C9" 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_3DC0670E86E5D62129A7D74D9E713F2A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_520844FF58A9EF8B6DD6D74D9E6DCE06" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_3DC0670E86E5D62129A7D74D9E713F2A" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_TaxCutsandJobsActof2017TransitionTaxforAccumulatedForeignEarningsIncomeTaxExpenseBenefit" xlink:label="loc_nx_TaxCutsandJobsActof2017TransitionTaxforAccumulatedForeignEarningsIncomeTaxExpenseBenefit_9756C5B79149242944C9D74D9E747017" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_520844FF58A9EF8B6DD6D74D9E6DCE06" xlink:to="loc_nx_TaxCutsandJobsActof2017TransitionTaxforAccumulatedForeignEarningsIncomeTaxExpenseBenefit_9756C5B79149242944C9D74D9E747017" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CurrentIncomeTaxExpenseBenefitContinuingOperationsAbstract" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefitContinuingOperationsAbstract_68B10376B7BE37354CE3D74D9E74A4B2" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_520844FF58A9EF8B6DD6D74D9E6DCE06" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefitContinuingOperationsAbstract_68B10376B7BE37354CE3D74D9E74A4B2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CurrentFederalTaxExpenseBenefit" xlink:label="loc_us-gaap_CurrentFederalTaxExpenseBenefit_0AFC48D937D12259A525D74D9E7EEDB7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefitContinuingOperationsAbstract_68B10376B7BE37354CE3D74D9E74A4B2" xlink:to="loc_us-gaap_CurrentFederalTaxExpenseBenefit_0AFC48D937D12259A525D74D9E7EEDB7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CurrentStateAndLocalTaxExpenseBenefit" xlink:label="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_07BAFACA6D55A76E0682D74D9E7FDE1B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefitContinuingOperationsAbstract_68B10376B7BE37354CE3D74D9E74A4B2" xlink:to="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_07BAFACA6D55A76E0682D74D9E7FDE1B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CurrentForeignTaxExpenseBenefit" xlink:label="loc_us-gaap_CurrentForeignTaxExpenseBenefit_8340FD9BB19158B0371CD74D9E8089F6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefitContinuingOperationsAbstract_68B10376B7BE37354CE3D74D9E74A4B2" xlink:to="loc_us-gaap_CurrentForeignTaxExpenseBenefit_8340FD9BB19158B0371CD74D9E8089F6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_F5FE3222B072CEBA6F5BD74D9E8062C9" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefitContinuingOperationsAbstract_68B10376B7BE37354CE3D74D9E74A4B2" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_F5FE3222B072CEBA6F5BD74D9E8062C9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefitContinuingOperationsAbstract" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefitContinuingOperationsAbstract_AB8F79FD40B415DB1BD0D74D9E80B1EC" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_520844FF58A9EF8B6DD6D74D9E6DCE06" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefitContinuingOperationsAbstract_AB8F79FD40B415DB1BD0D74D9E80B1EC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredFederalIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_B7EDEB9201A475F976DCD74D9E86D1C9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefitContinuingOperationsAbstract_AB8F79FD40B415DB1BD0D74D9E80B1EC" xlink:to="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_B7EDEB9201A475F976DCD74D9E86D1C9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_CC7F7B9E6908D18C8F40D74D9E87F540" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefitContinuingOperationsAbstract_AB8F79FD40B415DB1BD0D74D9E80B1EC" xlink:to="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_CC7F7B9E6908D18C8F40D74D9E87F540" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredForeignIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_A38E2EE419ADC75A0A84D74D9E874003" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefitContinuingOperationsAbstract_AB8F79FD40B415DB1BD0D74D9E80B1EC" xlink:to="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_A38E2EE419ADC75A0A84D74D9E874003" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_96C995E827D326F381D2D74D9E872FEE" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefitContinuingOperationsAbstract_AB8F79FD40B415DB1BD0D74D9E80B1EC" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_96C995E827D326F381D2D74D9E872FEE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_9564C23A35596C8B2F36D74D9E874558" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefitContinuingOperationsAbstract_AB8F79FD40B415DB1BD0D74D9E80B1EC" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_9564C23A35596C8B2F36D74D9E874558" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_8B111453B5E30A0BD663D74D9E88654D" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_520844FF58A9EF8B6DD6D74D9E6DCE06" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_8B111453B5E30A0BD663D74D9E88654D" 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_DB15E01863C0A1CCA402D74D9E88DC9D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_8B111453B5E30A0BD663D74D9E88654D" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_DB15E01863C0A1CCA402D74D9E88DC9D" 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_5D587E76E5027D90A8F7D74D9E88F8BC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_8B111453B5E30A0BD663D74D9E88654D" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_5D587E76E5027D90A8F7D74D9E88F8BC" 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_5501D5F696461D4E11D2D74D9E88C760" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_8B111453B5E30A0BD663D74D9E88654D" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_5501D5F696461D4E11D2D74D9E88C760" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_Effectiveincometaxratereconciliationdeferredratechange" xlink:label="loc_nx_Effectiveincometaxratereconciliationdeferredratechange_35A775904494B776F6F1D74D9E89A2D0" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_8B111453B5E30A0BD663D74D9E88654D" xlink:to="loc_nx_Effectiveincometaxratereconciliationdeferredratechange_35A775904494B776F6F1D74D9E89A2D0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits_2CFFA6FA21A2F3A3CD80D74D9E894F28" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_8B111453B5E30A0BD663D74D9E88654D" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits_2CFFA6FA21A2F3A3CD80D74D9E894F28" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_3338CEE4D8603ED6F947D74D9E8AB392" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_8B111453B5E30A0BD663D74D9E88654D" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_3338CEE4D8603ED6F947D74D9E8AB392" 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_7F23367CEDBC9A24446FD74D9E8A5C9E" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_8B111453B5E30A0BD663D74D9E88654D" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherReconcilingItemsPercent_7F23367CEDBC9A24446FD74D9E8A5C9E" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_EffectiveIncomeTaxRateReconciliationImpactofTaxReform" xlink:label="loc_nx_EffectiveIncomeTaxRateReconciliationImpactofTaxReform_5C446AB39AE0F8725330D74D9E8A4D59" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_8B111453B5E30A0BD663D74D9E88654D" xlink:to="loc_nx_EffectiveIncomeTaxRateReconciliationImpactofTaxReform_5C446AB39AE0F8725330D74D9E8A4D59" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_EffectiveIncomeTaxRateReconciliationImpactofGILTIandFDII" xlink:label="loc_nx_EffectiveIncomeTaxRateReconciliationImpactofGILTIandFDII_ED3415583F968983472DD74D9E8A4E44" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_8B111453B5E30A0BD663D74D9E88654D" xlink:to="loc_nx_EffectiveIncomeTaxRateReconciliationImpactofGILTIandFDII_ED3415583F968983472DD74D9E8A4E44" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_EffectiveIncomeTaxRateReconciliationStockBasedCompensation" xlink:label="loc_nx_EffectiveIncomeTaxRateReconciliationStockBasedCompensation_57468AEBF22484A604C9D74D9E8B5147" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_8B111453B5E30A0BD663D74D9E88654D" xlink:to="loc_nx_EffectiveIncomeTaxRateReconciliationStockBasedCompensation_57468AEBF22484A604C9D74D9E8B5147" 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_07EF17B0927FA05702A7D74D9E8F9F53" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_8B111453B5E30A0BD663D74D9E88654D" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationRepatriationOfForeignEarnings_07EF17B0927FA05702A7D74D9E8F9F53" 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_1BEBDD426855FF6674C6D74D9E92CB89" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_8B111453B5E30A0BD663D74D9E88654D" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseImpairmentLosses_1BEBDD426855FF6674C6D74D9E92CB89" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_F7A17CFFD6A9536E84A0D74D9E95F7C0" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_8B111453B5E30A0BD663D74D9E88654D" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_F7A17CFFD6A9536E84A0D74D9E95F7C0" 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_0151295FA96C7A15DAE8D74D9E96B7B2" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_8B111453B5E30A0BD663D74D9E88654D" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_0151295FA96C7A15DAE8D74D9E96B7B2" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_TaxCutsandJobsActof2017GILTIandFDII" xlink:label="loc_nx_TaxCutsandJobsActof2017GILTIandFDII_32F75001B91EDE1F055ED74D9E96EDB2" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_520844FF58A9EF8B6DD6D74D9E6DCE06" xlink:to="loc_nx_TaxCutsandJobsActof2017GILTIandFDII_32F75001B91EDE1F055ED74D9E96EDB2" 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_25F719ED19691C9A2587D74D9E979FF4" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_520844FF58A9EF8B6DD6D74D9E6DCE06" xlink:to="loc_us-gaap_ForeignEarningsRepatriated_25F719ED19691C9A2587D74D9E979FF4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract" xlink:label="loc_us-gaap_ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract_53383F78CF0011BF55ECD74D9EA25C50" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_520844FF58A9EF8B6DD6D74D9E6DCE06" xlink:to="loc_us-gaap_ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract_53383F78CF0011BF55ECD74D9EA25C50" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ComponentsOfDeferredTaxAssetsAbstract" xlink:label="loc_us-gaap_ComponentsOfDeferredTaxAssetsAbstract_FADDE9B8142B0B762AA4D74D9EA282F8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract_53383F78CF0011BF55ECD74D9EA25C50" xlink:to="loc_us-gaap_ComponentsOfDeferredTaxAssetsAbstract_FADDE9B8142B0B762AA4D74D9EA282F8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation_E32CC767C3714DDE6412D74D9EA3E742" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAbstract_FADDE9B8142B0B762AA4D74D9EA282F8" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation_E32CC767C3714DDE6412D74D9EA3E742" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_5D7D877985CBE4E7F731D74D9EA32B72" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAbstract_FADDE9B8142B0B762AA4D74D9EA282F8" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_5D7D877985CBE4E7F731D74D9EA32B72" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions_8E4ABCFCB511ABD628B8D74D9EA3DD07" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAbstract_FADDE9B8142B0B762AA4D74D9EA282F8" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions_8E4ABCFCB511ABD628B8D74D9EA3DD07" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsInventory" xlink:label="loc_us-gaap_DeferredTaxAssetsInventory_96403B3A2D0586B6DE60D74D9EA4D883" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAbstract_FADDE9B8142B0B762AA4D74D9EA282F8" xlink:to="loc_us-gaap_DeferredTaxAssetsInventory_96403B3A2D0586B6DE60D74D9EA4D883" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_7127AD71CB6EC98DAD0AD74D9EA4AB83" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAbstract_FADDE9B8142B0B762AA4D74D9EA282F8" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_7127AD71CB6EC98DAD0AD74D9EA4AB83" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseOther" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseOther_7CD6DE50392CDE46B1C3D74D9EA47110" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAbstract_FADDE9B8142B0B762AA4D74D9EA282F8" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseOther_7CD6DE50392CDE46B1C3D74D9EA47110" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsGross" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_609927AEA316B52271AED74D9EA4DDF1" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAbstract_FADDE9B8142B0B762AA4D74D9EA282F8" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_609927AEA316B52271AED74D9EA4DDF1" 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_885E141AE62F903BB478D74D9EA5BC13" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAbstract_FADDE9B8142B0B762AA4D74D9EA282F8" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_885E141AE62F903BB478D74D9EA5BC13" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsNet" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_85F3A218F8EC8CA5F707D74D9EA6E9E6" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAbstract_FADDE9B8142B0B762AA4D74D9EA282F8" xlink:to="loc_us-gaap_DeferredTaxAssetsNet_85F3A218F8EC8CA5F707D74D9EA6E9E6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract" xlink:label="loc_us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract_3882FE03D63C895157F1D74D9EA606C7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract_53383F78CF0011BF55ECD74D9EA25C50" xlink:to="loc_us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract_3882FE03D63C895157F1D74D9EA606C7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_01BDC11C5BCE3334E60BD74D9EA67CF7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract_3882FE03D63C895157F1D74D9EA606C7" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_01BDC11C5BCE3334E60BD74D9EA67CF7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssets" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssets_D97F5454904E16622221D74D9EA6B03D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract_3882FE03D63C895157F1D74D9EA606C7" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssets_D97F5454904E16622221D74D9EA6B03D" 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_C6BF9DC778EF05DA5EBED74D9EA751DB" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract_3882FE03D63C895157F1D74D9EA606C7" xlink:to="loc_us-gaap_DeferredTaxLiabilities_C6BF9DC778EF05DA5EBED74D9EA751DB" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_Netdeferredtaxassetsnetofuncertaintaxpositions" xlink:label="loc_nx_Netdeferredtaxassetsnetofuncertaintaxpositions_44B080DFD90E30155189D74D9EA7A8E8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract_53383F78CF0011BF55ECD74D9EA25C50" xlink:to="loc_nx_Netdeferredtaxassetsnetofuncertaintaxpositions_44B080DFD90E30155189D74D9EA7A8E8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLossCarryforwards" xlink:label="loc_us-gaap_OperatingLossCarryforwards_A746BA5176AE1C701771D74D9EA73D88" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract_53383F78CF0011BF55ECD74D9EA25C50" xlink:to="loc_us-gaap_OperatingLossCarryforwards_A746BA5176AE1C701771D74D9EA73D88" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TaxCreditCarryforwardAmount" xlink:label="loc_us-gaap_TaxCreditCarryforwardAmount_E4EAC5FFB135720720B8D74D9EB00963" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract_53383F78CF0011BF55ECD74D9EA25C50" xlink:to="loc_us-gaap_TaxCreditCarryforwardAmount_E4EAC5FFB135720720B8D74D9EB00963" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLossCarryforwardsValuationAllowance" xlink:label="loc_us-gaap_OperatingLossCarryforwardsValuationAllowance_627D92AFE6DEA23AA461D74D9EB1FB6B" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract_53383F78CF0011BF55ECD74D9EA25C50" xlink:to="loc_us-gaap_OperatingLossCarryforwardsValuationAllowance_627D92AFE6DEA23AA461D74D9EB1FB6B" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_UnrecognizedTaxBenefitsRollForward" xlink:label="loc_nx_UnrecognizedTaxBenefitsRollForward_9D3B53E7687BE9FC5DCCD74D9EB1D0E0" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_520844FF58A9EF8B6DD6D74D9E6DCE06" xlink:to="loc_nx_UnrecognizedTaxBenefitsRollForward_9D3B53E7687BE9FC5DCCD74D9EB1D0E0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnrecognizedTaxBenefits" xlink:label="loc_us-gaap_UnrecognizedTaxBenefits_0920DCA24D5EED48AC7DD74D9EB1C1F2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_UnrecognizedTaxBenefitsRollForward_9D3B53E7687BE9FC5DCCD74D9EB1D0E0" xlink:to="loc_us-gaap_UnrecognizedTaxBenefits_0920DCA24D5EED48AC7DD74D9EB1C1F2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromCurrentPeriodTaxPositions" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromCurrentPeriodTaxPositions_F24ACE77916E1C87A34CD74D9EB271EB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_UnrecognizedTaxBenefitsRollForward_9D3B53E7687BE9FC5DCCD74D9EB1D0E0" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromCurrentPeriodTaxPositions_F24ACE77916E1C87A34CD74D9EB271EB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromPriorPeriodTaxPositions" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromPriorPeriodTaxPositions_C5E3AFABDB7605D07A8ED74D9EB259C9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_UnrecognizedTaxBenefitsRollForward_9D3B53E7687BE9FC5DCCD74D9EB1D0E0" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromPriorPeriodTaxPositions_C5E3AFABDB7605D07A8ED74D9EB259C9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnrecognizedTaxBenefitsReductionsResultingFromLapseOfApplicableStatuteOfLimitations" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsReductionsResultingFromLapseOfApplicableStatuteOfLimitations_DCED988CB2EB054E4A0FD74D9EB2E1DD" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_UnrecognizedTaxBenefitsRollForward_9D3B53E7687BE9FC5DCCD74D9EB1D0E0" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsReductionsResultingFromLapseOfApplicableStatuteOfLimitations_DCED988CB2EB054E4A0FD74D9EB2E1DD" 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_81BBE65F86CA81537ABCD74D9EB35248" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_520844FF58A9EF8B6DD6D74D9E6DCE06" xlink:to="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_81BBE65F86CA81537ABCD74D9EB35248" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxEffectsAllocatedDirectlyToEquityOther" xlink:label="loc_us-gaap_IncomeTaxEffectsAllocatedDirectlyToEquityOther_9E1B566119F3B90C45BED74D9EB4BDA3" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_520844FF58A9EF8B6DD6D74D9E6DCE06" xlink:to="loc_us-gaap_IncomeTaxEffectsAllocatedDirectlyToEquityOther_9E1B566119F3B90C45BED74D9EB4BDA3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxLiabilitiesNoncurrent" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesNoncurrent_E8C7FE9E093206698B82D74D9EB4E921" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_520844FF58A9EF8B6DD6D74D9E6DCE06" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesNoncurrent_E8C7FE9E093206698B82D74D9EB4E921" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxLiabilitiesUndistributedForeignEarnings" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesUndistributedForeignEarnings_D9D5DEAF7E23205FE4D7D74D9EB49C69" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_520844FF58A9EF8B6DD6D74D9E6DCE06" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesUndistributedForeignEarnings_D9D5DEAF7E23205FE4D7D74D9EB49C69" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_TaxCutsandJobsActof2017ChangeinTaxRateIncomeTaxExpenseBenefit" xlink:label="loc_nx_TaxCutsandJobsActof2017ChangeinTaxRateIncomeTaxExpenseBenefit_5599661B68E1432F8D91D74D9EB58FCF" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_520844FF58A9EF8B6DD6D74D9E6DCE06" xlink:to="loc_nx_TaxCutsandJobsActof2017ChangeinTaxRateIncomeTaxExpenseBenefit_5599661B68E1432F8D91D74D9EB58FCF" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_TaxCutsandJobsActof2017TrueUpOfAccruedTaxes" xlink:label="loc_nx_TaxCutsandJobsActof2017TrueUpOfAccruedTaxes_F5D1E33044DACD292901D74D9EB5EE5D" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_520844FF58A9EF8B6DD6D74D9E6DCE06" xlink:to="loc_nx_TaxCutsandJobsActof2017TrueUpOfAccruedTaxes_F5D1E33044DACD292901D74D9EB5EE5D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_E28E89C9E622379CC65FD75414D6C1B1" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_520844FF58A9EF8B6DD6D74D9E6DCE06" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_E28E89C9E622379CC65FD75414D6C1B1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_077ECC15AD7B784E24AED754C191D067" xlink:type="locator" />
    <link:definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_520844FF58A9EF8B6DD6D74D9E6DCE06" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_077ECC15AD7B784E24AED754C191D067" xlink:type="arc" />
  </link:definitionLink>
  <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:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/InventoriesInventoriesAccountingChangeDetails" 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_9E1EB86A15EDC7FAAEEE8AE9259FCA4B" 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_25FB5F9C4B4FD1F255078AE9259C1887" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_9E1EB86A15EDC7FAAEEE8AE9259FCA4B" xlink:to="loc_us-gaap_StatementTable_25FB5F9C4B4FD1F255078AE9259C1887" 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_9F2352C442E6E481A2F58AE9259D9D82" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_25FB5F9C4B4FD1F255078AE9259C1887" xlink:to="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_9F2352C442E6E481A2F58AE9259D9D82" 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_B38332AD16217384BD198AE9259D74FE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_9F2352C442E6E481A2F58AE9259D9D82" xlink:to="loc_us-gaap_ChangeInAccountingPrincipleMember_B38332AD16217384BD198AE9259D74FE_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_B38332AD16217384BD198AE9259D74FE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_9F2352C442E6E481A2F58AE9259D9D82" xlink:to="loc_us-gaap_ChangeInAccountingPrincipleMember_B38332AD16217384BD198AE9259D74FE" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_AsreportedbeforechangetoFIFOMember" xlink:label="loc_nx_AsreportedbeforechangetoFIFOMember_B44DED25FDA4A013E0C58AE9259E39B5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ChangeInAccountingPrincipleMember_B38332AD16217384BD198AE9259D74FE" xlink:to="loc_nx_AsreportedbeforechangetoFIFOMember_B44DED25FDA4A013E0C58AE9259E39B5" 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_A17458CCEFFE6B90BF178AE9259E7045" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ChangeInAccountingPrincipleMember_B38332AD16217384BD198AE9259D74FE" xlink:to="loc_us-gaap_InventoriesMember_A17458CCEFFE6B90BF178AE9259E7045" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CostOfGoodsAndServicesSold" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_E26330DDE85A2914AD098AE9259FEF34" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9E1EB86A15EDC7FAAEEE8AE9259FCA4B" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_E26330DDE85A2914AD098AE9259FEF34" 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_7C6BB492AB011D00D18F8AE9259F22FA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9E1EB86A15EDC7FAAEEE8AE9259FCA4B" xlink:to="loc_us-gaap_InventoryNet_7C6BB492AB011D00D18F8AE9259F22FA" 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_111ADF41DBA5E2F926508AE9259FFB69" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9E1EB86A15EDC7FAAEEE8AE9259FCA4B" xlink:to="loc_us-gaap_DeferredTaxLiabilities_111ADF41DBA5E2F926508AE9259FFB69" 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_B3C24FE3385FB4BAC19D8AE925A066FA" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9E1EB86A15EDC7FAAEEE8AE9259FCA4B" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_B3C24FE3385FB4BAC19D8AE925A066FA" 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_B2D6C9CBB9642D16F63D8AE925A08392" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9E1EB86A15EDC7FAAEEE8AE9259FCA4B" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_B2D6C9CBB9642D16F63D8AE925A08392" 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_84223928A2C425E2D7D68AE925A083CA" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9E1EB86A15EDC7FAAEEE8AE9259FCA4B" xlink:to="loc_us-gaap_OperatingIncomeLoss_84223928A2C425E2D7D68AE925A083CA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_69C1DB57CA4E3BFED4858AE925A07634" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9E1EB86A15EDC7FAAEEE8AE9259FCA4B" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_69C1DB57CA4E3BFED4858AE925A07634" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_E0A72C6BBA8FE681D1668AE925A0BE15" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9E1EB86A15EDC7FAAEEE8AE9259FCA4B" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_E0A72C6BBA8FE681D1668AE925A0BE15" 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_9C2850404572F1E987CF8AE925A05B43" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9E1EB86A15EDC7FAAEEE8AE9259FCA4B" xlink:to="loc_us-gaap_NetIncomeLoss_9C2850404572F1E987CF8AE925A05B43" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EarningsPerShareBasic" xlink:label="loc_us-gaap_EarningsPerShareBasic_35D8D0F9FA4095529CBB8AE925A1AD0D" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9E1EB86A15EDC7FAAEEE8AE9259FCA4B" xlink:to="loc_us-gaap_EarningsPerShareBasic_35D8D0F9FA4095529CBB8AE925A1AD0D" 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_242952F61FD542BFDACB8AE925A1A90D" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9E1EB86A15EDC7FAAEEE8AE9259FCA4B" xlink:to="loc_us-gaap_EarningsPerShareDiluted_242952F61FD542BFDACB8AE925A1A90D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_18B7D9430763D08CEB568AE925A14AD6" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9E1EB86A15EDC7FAAEEE8AE9259FCA4B" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_18B7D9430763D08CEB568AE925A14AD6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInInventories" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_8D17A19818B70809B7548AE925A1AD25" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9E1EB86A15EDC7FAAEEE8AE9259FCA4B" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_8D17A19818B70809B7548AE925A1AD25" 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/NatureOfOperationsAndBasisOfPresentationCashFlowDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationConcentrationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskLineItems" xlink:label="loc_us-gaap_ConcentrationRiskLineItems_AB75305B82A3317EFE498553DD7E38DD" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskTable" xlink:label="loc_us-gaap_ConcentrationRiskTable_4ADF1202745E676AC4F38553DD7CC832" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_AB75305B82A3317EFE498553DD7E38DD" xlink:to="loc_us-gaap_ConcentrationRiskTable_4ADF1202745E676AC4F38553DD7CC832" 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_MajorCustomersAxis" xlink:label="loc_srt_MajorCustomersAxis_F5C927592E0CC28AFE8A8553DD7D000D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_4ADF1202745E676AC4F38553DD7CC832" xlink:to="loc_srt_MajorCustomersAxis_F5C927592E0CC28AFE8A8553DD7D000D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_NameOfMajorCustomerDomain" xlink:label="loc_srt_NameOfMajorCustomerDomain_32D6FCA0FC578F7181528553DD7DBBF2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_F5C927592E0CC28AFE8A8553DD7D000D" xlink:to="loc_srt_NameOfMajorCustomerDomain_32D6FCA0FC578F7181528553DD7DBBF2_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_NameOfMajorCustomerDomain" xlink:label="loc_srt_NameOfMajorCustomerDomain_32D6FCA0FC578F7181528553DD7DBBF2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_F5C927592E0CC28AFE8A8553DD7D000D" xlink:to="loc_srt_NameOfMajorCustomerDomain_32D6FCA0FC578F7181528553DD7DBBF2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_721E53182792E97175858553DD7D08C8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_4ADF1202745E676AC4F38553DD7CC832" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_721E53182792E97175858553DD7D08C8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_78285FBF0BD253843E3E8553DD7D373C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_721E53182792E97175858553DD7D08C8" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_78285FBF0BD253843E3E8553DD7D373C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_78285FBF0BD253843E3E8553DD7D373C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_721E53182792E97175858553DD7D08C8" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_78285FBF0BD253843E3E8553DD7D373C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SalesMember" xlink:label="loc_us-gaap_SalesMember_DAF5DDE3BAF8BE3B36628553DD7E6787" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_78285FBF0BD253843E3E8553DD7D373C" xlink:to="loc_us-gaap_SalesMember_DAF5DDE3BAF8BE3B36628553DD7E6787" 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_2B4938DF9EE18FAC5B1F8553DD7FCBE2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_AB75305B82A3317EFE498553DD7E38DD" xlink:to="loc_us-gaap_NumberOfReportableSegments_2B4938DF9EE18FAC5B1F8553DD7FCBE2" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_ConcentrationRiskNumberofMajorCustomersLostWhoCouldAdverselyAffectBusiness" xlink:label="loc_nx_ConcentrationRiskNumberofMajorCustomersLostWhoCouldAdverselyAffectBusiness_3BC4DCD60C67727A0CAF8553DD7FFE7A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_AB75305B82A3317EFE498553DD7E38DD" xlink:to="loc_nx_ConcentrationRiskNumberofMajorCustomersLostWhoCouldAdverselyAffectBusiness_3BC4DCD60C67727A0CAF8553DD7FFE7A" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationInventoryDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationLongLivedAssetsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_399274109AD8F5B62FEF90E91F1EB095" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_93428CBE6AB41BBF834490E91F1C6B69" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_399274109AD8F5B62FEF90E91F1EB095" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_93428CBE6AB41BBF834490E91F1C6B69" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_1E0288F99A279F1077B990E91F1CB1C7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_93428CBE6AB41BBF834490E91F1C6B69" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_1E0288F99A279F1077B990E91F1CB1C7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DBFEF49DF1C0AB9FFD9D90E91F1C354E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_1E0288F99A279F1077B990E91F1CB1C7" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DBFEF49DF1C0AB9FFD9D90E91F1C354E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DBFEF49DF1C0AB9FFD9D90E91F1C354E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_1E0288F99A279F1077B990E91F1CB1C7" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DBFEF49DF1C0AB9FFD9D90E91F1C354E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LandImprovementsMember" xlink:label="loc_us-gaap_LandImprovementsMember_11F335ABBEF931E02BE390E91F1D21B3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DBFEF49DF1C0AB9FFD9D90E91F1C354E" xlink:to="loc_us-gaap_LandImprovementsMember_11F335ABBEF931E02BE390E91F1D21B3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BuildingMember" xlink:label="loc_us-gaap_BuildingMember_C6BD099E0270EEC8D8AB90E91F1DE768" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DBFEF49DF1C0AB9FFD9D90E91F1C354E" xlink:to="loc_us-gaap_BuildingMember_C6BD099E0270EEC8D8AB90E91F1DE768" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BuildingImprovementsMember" xlink:label="loc_us-gaap_BuildingImprovementsMember_BDAD830B9F81F676185D90E91F1DF860" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DBFEF49DF1C0AB9FFD9D90E91F1C354E" xlink:to="loc_us-gaap_BuildingImprovementsMember_BDAD830B9F81F676185D90E91F1DF860" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MachineryAndEquipmentMember" xlink:label="loc_us-gaap_MachineryAndEquipmentMember_441D1275435B79756B9990E91F1DCFE0" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DBFEF49DF1C0AB9FFD9D90E91F1C354E" xlink:to="loc_us-gaap_MachineryAndEquipmentMember_441D1275435B79756B9990E91F1DCFE0" 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_1D2F40C6B4F0CDD218EA90E91F1DA56F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_93428CBE6AB41BBF834490E91F1C6B69" xlink:to="loc_srt_RangeAxis_1D2F40C6B4F0CDD218EA90E91F1DA56F" 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_1F6F920FCF0281A8154E90E91F1E4C49_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_1D2F40C6B4F0CDD218EA90E91F1DA56F" xlink:to="loc_srt_RangeMember_1F6F920FCF0281A8154E90E91F1E4C49_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_1F6F920FCF0281A8154E90E91F1E4C49" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_1D2F40C6B4F0CDD218EA90E91F1DA56F" xlink:to="loc_srt_RangeMember_1F6F920FCF0281A8154E90E91F1E4C49" 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_368F415922E8B9228F6D90E91F1E7D0E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_1F6F920FCF0281A8154E90E91F1E4C49" xlink:to="loc_srt_MinimumMember_368F415922E8B9228F6D90E91F1E7D0E" 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_B7BFFDA14C9B1B873DED90E91F1EE817" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_1F6F920FCF0281A8154E90E91F1E4C49" xlink:to="loc_srt_MaximumMember_B7BFFDA14C9B1B873DED90E91F1EE817" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_C41CE57C4A39EA3EC02490E91F1EFA8C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_399274109AD8F5B62FEF90E91F1EB095" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_C41CE57C4A39EA3EC02490E91F1EFA8C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationNatureOfOperationsAndBasisOfPresentationRevenueFromContractsWithCustomersDetails" 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_0AE404425222BD741EFC8553CC5DFFDE" 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_234574B80203370D48498553CC5590C9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_0AE404425222BD741EFC8553CC5DFFDE" xlink:to="loc_us-gaap_StatementTable_234574B80203370D48498553CC5590C9" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srt_ProductOrServiceAxis_5468BFEC5CFFF0793CB78553CC5645CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_234574B80203370D48498553CC5590C9" xlink:to="loc_srt_ProductOrServiceAxis_5468BFEC5CFFF0793CB78553CC5645CD" 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_061DBF56FC7C46A93E018553CC56FD9F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_5468BFEC5CFFF0793CB78553CC5645CD" xlink:to="loc_srt_ProductsAndServicesDomain_061DBF56FC7C46A93E018553CC56FD9F_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_061DBF56FC7C46A93E018553CC56FD9F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_5468BFEC5CFFF0793CB78553CC5645CD" xlink:to="loc_srt_ProductsAndServicesDomain_061DBF56FC7C46A93E018553CC56FD9F" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_FenestrationMember" xlink:label="loc_nx_FenestrationMember_BCE70603100096E137088553CC576B90" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_061DBF56FC7C46A93E018553CC56FD9F" xlink:to="loc_nx_FenestrationMember_BCE70603100096E137088553CC576B90" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_NonfenestrationMember" xlink:label="loc_nx_NonfenestrationMember_63EC547B867840CD6DDB8553CC57A922" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_061DBF56FC7C46A93E018553CC56FD9F" xlink:to="loc_nx_NonfenestrationMember_63EC547B867840CD6DDB8553CC57A922" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_EAA0C16818CFA53CC7888553CC594F90" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_234574B80203370D48498553CC5590C9" xlink:to="loc_srt_ConsolidationItemsAxis_EAA0C16818CFA53CC7888553CC594F90" 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_3DE0F5C54592D4F9C42B8553CC592BAB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_EAA0C16818CFA53CC7888553CC594F90" xlink:to="loc_srt_ConsolidationItemsDomain_3DE0F5C54592D4F9C42B8553CC592BAB_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_3DE0F5C54592D4F9C42B8553CC592BAB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_EAA0C16818CFA53CC7888553CC594F90" xlink:to="loc_srt_ConsolidationItemsDomain_3DE0F5C54592D4F9C42B8553CC592BAB" 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_3D18F2687638B57B0CD68553CC5A0D22" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_3DE0F5C54592D4F9C42B8553CC592BAB" xlink:to="loc_us-gaap_OperatingSegmentsMember_3D18F2687638B57B0CD68553CC5A0D22" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IntersegmentEliminationMember" xlink:label="loc_us-gaap_IntersegmentEliminationMember_DED098F96C3393DC21FB8553CC5AC856" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_3DE0F5C54592D4F9C42B8553CC592BAB" xlink:to="loc_us-gaap_IntersegmentEliminationMember_DED098F96C3393DC21FB8553CC5AC856" 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_7A318EEE72AE4652550F8553CC5A7F53" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_3DE0F5C54592D4F9C42B8553CC592BAB" xlink:to="loc_us-gaap_CorporateNonSegmentMember_7A318EEE72AE4652550F8553CC5A7F53" 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_912833F127D86B0A15BA8553CC5BC9CC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_234574B80203370D48498553CC5590C9" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_912833F127D86B0A15BA8553CC5BC9CC" 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_704156365D6EAC3456288553CC5B362F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_912833F127D86B0A15BA8553CC5BC9CC" xlink:to="loc_us-gaap_SegmentDomain_704156365D6EAC3456288553CC5B362F_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_704156365D6EAC3456288553CC5B362F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_912833F127D86B0A15BA8553CC5BC9CC" xlink:to="loc_us-gaap_SegmentDomain_704156365D6EAC3456288553CC5B362F" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_NAEngineeredComponentsMember" xlink:label="loc_nx_NAEngineeredComponentsMember_4BCF42F47477294A36D88553CC5B8EC1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_704156365D6EAC3456288553CC5B362F" xlink:to="loc_nx_NAEngineeredComponentsMember_4BCF42F47477294A36D88553CC5B8EC1" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_EUEngineeredComponentsMember" xlink:label="loc_nx_EUEngineeredComponentsMember_8FF9838DCEB3182DE36A8553CC5B969E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_704156365D6EAC3456288553CC5B362F" xlink:to="loc_nx_EUEngineeredComponentsMember_8FF9838DCEB3182DE36A8553CC5B969E" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_NACabinetComponentsMember" xlink:label="loc_nx_NACabinetComponentsMember_9EB924868ED63896A1628553CC5CCCA6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_704156365D6EAC3456288553CC5B362F" xlink:to="loc_nx_NACabinetComponentsMember_9EB924868ED63896A1628553CC5CCCA6" 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_2B7F6A9D179E5225E6578553CC5CCD50" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_234574B80203370D48498553CC5590C9" xlink:to="loc_srt_StatementGeographicalAxis_2B7F6A9D179E5225E6578553CC5CCD50" 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_0068E9122ACC2B0205B18553CC5C9F5A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_2B7F6A9D179E5225E6578553CC5CCD50" xlink:to="loc_srt_SegmentGeographicalDomain_0068E9122ACC2B0205B18553CC5C9F5A_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_0068E9122ACC2B0205B18553CC5C9F5A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_2B7F6A9D179E5225E6578553CC5CCD50" xlink:to="loc_srt_SegmentGeographicalDomain_0068E9122ACC2B0205B18553CC5C9F5A" 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_DCECC100012BD1603EC98553CC5DFAFD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_0068E9122ACC2B0205B18553CC5C9F5A" xlink:to="loc_country_US_DCECC100012BD1603EC98553CC5DFAFD" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_InternationalMember" xlink:label="loc_nx_InternationalMember_FC461DEF7E4CA735C1A58553CC5DFAD2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_0068E9122ACC2B0205B18553CC5C9F5A" xlink:to="loc_nx_InternationalMember_FC461DEF7E4CA735C1A58553CC5DFAD2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Revenues" xlink:label="loc_us-gaap_Revenues_4972FBD26D1B18CD3F528553CC5DFFF3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_0AE404425222BD741EFC8553CC5DFFDE" xlink:to="loc_us-gaap_Revenues_4972FBD26D1B18CD3F528553CC5DFFF3" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationOrganizationConsolidationAndPresentationOfFinancialStatementsPolicies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationRelatedPartyTransactionsDetails" 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_77C77F9498F7833B080FA3A1CD6A4E0D" 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_BD2C710E4FB681BA2A1EA3A1CD69DF51" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_77C77F9498F7833B080FA3A1CD6A4E0D" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_BD2C710E4FB681BA2A1EA3A1CD69DF51" 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_7FCE91A21AA88221F562A3A1CD6983E3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_BD2C710E4FB681BA2A1EA3A1CD69DF51" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_7FCE91A21AA88221F562A3A1CD6983E3" 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_B27A16920FE93FD25F9BA3A1CD6AC6A2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_7FCE91A21AA88221F562A3A1CD6983E3" xlink:to="loc_us-gaap_SegmentDomain_B27A16920FE93FD25F9BA3A1CD6AC6A2_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_B27A16920FE93FD25F9BA3A1CD6AC6A2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_7FCE91A21AA88221F562A3A1CD6983E3" xlink:to="loc_us-gaap_SegmentDomain_B27A16920FE93FD25F9BA3A1CD6AC6A2" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_NAEngineeredComponentsMember" xlink:label="loc_nx_NAEngineeredComponentsMember_A04FAD6B816C19FAA926A3A1CD6A83CB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_B27A16920FE93FD25F9BA3A1CD6AC6A2" xlink:to="loc_nx_NAEngineeredComponentsMember_A04FAD6B816C19FAA926A3A1CD6A83CB" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_EUEngineeredComponentsMember" xlink:label="loc_nx_EUEngineeredComponentsMember_876CF9A601A5DCEECA22A3A1CD6AFFDA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_B27A16920FE93FD25F9BA3A1CD6AC6A2" xlink:to="loc_nx_EUEngineeredComponentsMember_876CF9A601A5DCEECA22A3A1CD6AFFDA" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_NACabinetComponentsMember" xlink:label="loc_nx_NACabinetComponentsMember_04D6203C011479739569A3A1CD6A2D6A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_B27A16920FE93FD25F9BA3A1CD6AC6A2" xlink:to="loc_nx_NACabinetComponentsMember_04D6203C011479739569A3A1CD6A2D6A" 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_D7DEB5265413A0F6A8E3A3A1CD6BABA5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_77C77F9498F7833B080FA3A1CD6A4E0D" xlink:to="loc_us-gaap_AssetImpairmentCharges_D7DEB5265413A0F6A8E3A3A1CD6BABA5" 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_C1554CD31B7FF0C22771A3A1CD6B80CF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_77C77F9498F7833B080FA3A1CD6A4E0D" xlink:to="loc_us-gaap_Goodwill_C1554CD31B7FF0C22771A3A1CD6B80CF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty" xlink:label="loc_us-gaap_RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty_8E694E79961DD02B76D7A3A1CD6B2BA4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_77C77F9498F7833B080FA3A1CD6A4E0D" xlink:to="loc_us-gaap_RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty_8E694E79961DD02B76D7A3A1CD6B2BA4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NumberOfReportingUnits" xlink:label="loc_us-gaap_NumberOfReportingUnits_8DCFF06945C4DB4AE017A3A1CD6B5DBB" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_77C77F9498F7833B080FA3A1CD6A4E0D" xlink:to="loc_us-gaap_NumberOfReportingUnits_8DCFF06945C4DB4AE017A3A1CD6B5DBB" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationRestructuringDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationStockOptionsDetails" 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_05B105B38DD42EC2611165C586535C2D" 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_F78A9A25C8690B1DA81E65C5865093A0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_05B105B38DD42EC2611165C586535C2D" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_F78A9A25C8690B1DA81E65C5865093A0" 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_TitleOfIndividualAxis" xlink:label="loc_us-gaap_TitleOfIndividualAxis_5AAB310C4EC62FD1335765C586515F5C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_F78A9A25C8690B1DA81E65C5865093A0" xlink:to="loc_us-gaap_TitleOfIndividualAxis_5AAB310C4EC62FD1335765C586515F5C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TitleOfIndividualWithRelationshipToEntityDomain" xlink:label="loc_us-gaap_TitleOfIndividualWithRelationshipToEntityDomain_64F838FCF31036302CEE65C5865167D4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TitleOfIndividualAxis_5AAB310C4EC62FD1335765C586515F5C" xlink:to="loc_us-gaap_TitleOfIndividualWithRelationshipToEntityDomain_64F838FCF31036302CEE65C5865167D4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TitleOfIndividualWithRelationshipToEntityDomain" xlink:label="loc_us-gaap_TitleOfIndividualWithRelationshipToEntityDomain_64F838FCF31036302CEE65C5865167D4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TitleOfIndividualAxis_5AAB310C4EC62FD1335765C586515F5C" xlink:to="loc_us-gaap_TitleOfIndividualWithRelationshipToEntityDomain_64F838FCF31036302CEE65C5865167D4" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_EmployeesandOfficersMember" xlink:label="loc_nx_EmployeesandOfficersMember_309D513064176CBA5FAE65C586514C9D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TitleOfIndividualWithRelationshipToEntityDomain_64F838FCF31036302CEE65C5865167D4" xlink:to="loc_nx_EmployeesandOfficersMember_309D513064176CBA5FAE65C586514C9D" 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_EDE43E6ED2E5B852A28B65C58652A79B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_F78A9A25C8690B1DA81E65C5865093A0" xlink:to="loc_us-gaap_AwardTypeAxis_EDE43E6ED2E5B852A28B65C58652A79B" 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_547CCD1635A4F471732A65C586522C3D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_EDE43E6ED2E5B852A28B65C58652A79B" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_547CCD1635A4F471732A65C586522C3D_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_547CCD1635A4F471732A65C586522C3D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_EDE43E6ED2E5B852A28B65C58652A79B" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_547CCD1635A4F471732A65C586522C3D" 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_25777085DD2E13F40EE965C586524E41" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_547CCD1635A4F471732A65C586522C3D" xlink:to="loc_us-gaap_EmployeeStockOptionMember_25777085DD2E13F40EE965C586524E41" 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_40E0C119F4283EB0E75965C586524EDE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_547CCD1635A4F471732A65C586522C3D" xlink:to="loc_us-gaap_RestrictedStockMember_40E0C119F4283EB0E75965C586524EDE" 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_19D3FA3A62A2E678FEFD65C586530ACA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_05B105B38DD42EC2611165C586535C2D" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_19D3FA3A62A2E678FEFD65C586530ACA" 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_076CBB235BE7EB7DE7B865C58653109E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_05B105B38DD42EC2611165C586535C2D" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_076CBB235BE7EB7DE7B865C58653109E" 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_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_117B17F8FB7CFF5D5F46F5C9C2597640" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_D636734346B78C5438DCF5C9C22FD6B6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_117B17F8FB7CFF5D5F46F5C9C2597640" xlink:to="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_D636734346B78C5438DCF5C9C22FD6B6" 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_1001DEB87585296531D4F5D11706E008" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_D636734346B78C5438DCF5C9C22FD6B6" xlink:to="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_1001DEB87585296531D4F5D11706E008" 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_064F69A088BD8B4DFFE7F5D11708E036_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_1001DEB87585296531D4F5D11706E008" xlink:to="loc_us-gaap_ChangeInAccountingPrincipleMember_064F69A088BD8B4DFFE7F5D11708E036_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_064F69A088BD8B4DFFE7F5D11708E036" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_1001DEB87585296531D4F5D11706E008" xlink:to="loc_us-gaap_ChangeInAccountingPrincipleMember_064F69A088BD8B4DFFE7F5D11708E036" 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_52D71AC137AE4B1E9AA4F5D118EE6711" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ChangeInAccountingPrincipleMember_064F69A088BD8B4DFFE7F5D11708E036" xlink:to="loc_us-gaap_AccountingStandardsUpdate201707Member_52D71AC137AE4B1E9AA4F5D118EE6711" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountingStandardsUpdate201615Member" xlink:label="loc_us-gaap_AccountingStandardsUpdate201615Member_1B2CBA56D1398C4AD0C2F5D11B25F0DE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ChangeInAccountingPrincipleMember_064F69A088BD8B4DFFE7F5D11708E036" xlink:to="loc_us-gaap_AccountingStandardsUpdate201615Member_1B2CBA56D1398C4AD0C2F5D11B25F0DE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountingStandardsUpdate201602Member" xlink:label="loc_us-gaap_AccountingStandardsUpdate201602Member_DC93793955700D252DAEF5D11B571C04" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ChangeInAccountingPrincipleMember_064F69A088BD8B4DFFE7F5D11708E036" xlink:to="loc_us-gaap_AccountingStandardsUpdate201602Member_DC93793955700D252DAEF5D11B571C04" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsForNewAccountingPronouncementsAxis" xlink:label="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_2A5A8590339AACCA6B48F5C9C23AC240" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_D636734346B78C5438DCF5C9C22FD6B6" xlink:to="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_2A5A8590339AACCA6B48F5C9C23AC240" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_7251BFBAF076A72826A3F5C9C248E74E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_2A5A8590339AACCA6B48F5C9C23AC240" xlink:to="loc_us-gaap_TypeOfAdoptionMember_7251BFBAF076A72826A3F5C9C248E74E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_7251BFBAF076A72826A3F5C9C248E74E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_2A5A8590339AACCA6B48F5C9C23AC240" xlink:to="loc_us-gaap_TypeOfAdoptionMember_7251BFBAF076A72826A3F5C9C248E74E" 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_544DC5DE7DF39CC3D050F5C57952FF47" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_D636734346B78C5438DCF5C9C22FD6B6" xlink:to="loc_srt_RangeAxis_544DC5DE7DF39CC3D050F5C57952FF47" 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_1F4B868E91141854DA1BF5C57B8B2B44_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_544DC5DE7DF39CC3D050F5C57952FF47" xlink:to="loc_srt_RangeMember_1F4B868E91141854DA1BF5C57B8B2B44_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_1F4B868E91141854DA1BF5C57B8B2B44" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_544DC5DE7DF39CC3D050F5C57952FF47" xlink:to="loc_srt_RangeMember_1F4B868E91141854DA1BF5C57B8B2B44" 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_1E0EDEADF2CB942524F9F5C5A15F35A6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_1F4B868E91141854DA1BF5C57B8B2B44" xlink:to="loc_srt_MinimumMember_1E0EDEADF2CB942524F9F5C5A15F35A6" 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_04531F5A5CDB73FEC87BF5C6AF0EF3E6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_1F4B868E91141854DA1BF5C57B8B2B44" xlink:to="loc_srt_MaximumMember_04531F5A5CDB73FEC87BF5C6AF0EF3E6" 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_CostOfRevenue_7A6368DBE13B81F64707F5A1D0A650DA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_117B17F8FB7CFF5D5F46F5C9C2597640" xlink:to="loc_us-gaap_CostOfRevenue_7A6368DBE13B81F64707F5A1D0A650DA" 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_A94AF695FEEC597875A6F5A1D0A717BB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_117B17F8FB7CFF5D5F46F5C9C2597640" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_A94AF695FEEC597875A6F5A1D0A717BB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentForContingentConsiderationLiabilityFinancingActivities" xlink:label="loc_us-gaap_PaymentForContingentConsiderationLiabilityFinancingActivities_00C60A53E79C1A0714D6F5A1D0A7C294" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_117B17F8FB7CFF5D5F46F5C9C2597640" xlink:to="loc_us-gaap_PaymentForContingentConsiderationLiabilityFinancingActivities_00C60A53E79C1A0714D6F5A1D0A7C294" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NewAccountingPronouncementOrChangeInAccountingPrincipleEffectOfAdoptionQuantification" xlink:label="loc_us-gaap_NewAccountingPronouncementOrChangeInAccountingPrincipleEffectOfAdoptionQuantification_A898AD69364ECF2AAC75F5A39163448A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_117B17F8FB7CFF5D5F46F5C9C2597640" xlink:to="loc_us-gaap_NewAccountingPronouncementOrChangeInAccountingPrincipleEffectOfAdoptionQuantification_A898AD69364ECF2AAC75F5A39163448A" 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/PropertyPlantAndEquipmentDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_016AE62B1A8491B9583290E92065FCF2" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_5DDEC4B5CD2BFDDCEE8090E920641F62" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_016AE62B1A8491B9583290E92065FCF2" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_5DDEC4B5CD2BFDDCEE8090E920641F62" 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_LongtermDebtTypeAxis" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_CB8124E327F6D057212E90E92064B5F0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_5DDEC4B5CD2BFDDCEE8090E920641F62" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_CB8124E327F6D057212E90E92064B5F0" 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_8F8B50FCF55640CB5F2390E9206443D4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_CB8124E327F6D057212E90E92064B5F0" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_8F8B50FCF55640CB5F2390E9206443D4_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_8F8B50FCF55640CB5F2390E9206443D4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_CB8124E327F6D057212E90E92064B5F0" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_8F8B50FCF55640CB5F2390E9206443D4" 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_D2B657D550B5CB25F06490E920659742" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_8F8B50FCF55640CB5F2390E9206443D4" xlink:to="loc_us-gaap_CapitalLeaseObligationsMember_D2B657D550B5CB25F06490E920659742" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LandAndLandImprovements" xlink:label="loc_us-gaap_LandAndLandImprovements_F53CE220A1B4BE15B44390E92065561D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_016AE62B1A8491B9583290E92065FCF2" xlink:to="loc_us-gaap_LandAndLandImprovements_F53CE220A1B4BE15B44390E92065561D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BuildingsAndImprovementsGross" xlink:label="loc_us-gaap_BuildingsAndImprovementsGross_5ED617032D529B59EC9590E920650CC1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_016AE62B1A8491B9583290E92065FCF2" xlink:to="loc_us-gaap_BuildingsAndImprovementsGross_5ED617032D529B59EC9590E920650CC1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MachineryAndEquipmentGross" xlink:label="loc_us-gaap_MachineryAndEquipmentGross_10000CE37622E90A5F8190E92066EC01" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_016AE62B1A8491B9583290E92065FCF2" xlink:to="loc_us-gaap_MachineryAndEquipmentGross_10000CE37622E90A5F8190E92066EC01" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConstructionInProgressGross" xlink:label="loc_us-gaap_ConstructionInProgressGross_4CEE7A25B4C4D9DB58C290E9206699D4" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_016AE62B1A8491B9583290E92065FCF2" xlink:to="loc_us-gaap_ConstructionInProgressGross_4CEE7A25B4C4D9DB58C290E9206699D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_CB5FDE432FD0495283AA90E9206669A2" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_016AE62B1A8491B9583290E92065FCF2" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_CB5FDE432FD0495283AA90E9206669A2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_D2412A1907F940FFE91B90E92066BE1E" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_016AE62B1A8491B9583290E92065FCF2" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_D2412A1907F940FFE91B90E92066BE1E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_2A8C86F1258EE4C8090690E920661179" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_016AE62B1A8491B9583290E92065FCF2" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_2A8C86F1258EE4C8090690E920661179" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Depreciation" xlink:label="loc_us-gaap_Depreciation_63FA5E531AEFF2EC6B0F90E920674FFF" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_016AE62B1A8491B9583290E92065FCF2" xlink:to="loc_us-gaap_Depreciation_63FA5E531AEFF2EC6B0F90E920674FFF" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/PropertyPlantAndEquipmentTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/PropertyPlantEquipment" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/ReceivablesAllowance" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/ReceivablesAllowanceDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/ReceivablesAllowanceTables" 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:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_270AC2B6BF887C864C74D755CAF0CEC7" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_DC070F92244021C729CCD755CAEC54AC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_270AC2B6BF887C864C74D755CAF0CEC7" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_DC070F92244021C729CCD755CAEC54AC" 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_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_B17A7776EF7AC007E50FD755CAECE790" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_DC070F92244021C729CCD755CAEC54AC" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_B17A7776EF7AC007E50FD755CAECE790" 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_6E113AA529556F6C4A18D755CAEC44BF_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_B17A7776EF7AC007E50FD755CAECE790" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_6E113AA529556F6C4A18D755CAEC44BF_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_6E113AA529556F6C4A18D755CAEC44BF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_B17A7776EF7AC007E50FD755CAECE790" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_6E113AA529556F6C4A18D755CAEC44BF" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_WoodcraftMember" xlink:label="loc_nx_WoodcraftMember_CF028C40DDFB85576728D755CAEDF5C0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_6E113AA529556F6C4A18D755CAEC44BF" xlink:to="loc_nx_WoodcraftMember_CF028C40DDFB85576728D755CAEDF5C0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis" xlink:label="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_AFFBAAC69F689EC2D9A9D755CAED5997" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_DC070F92244021C729CCD755CAEC54AC" xlink:to="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_AFFBAAC69F689EC2D9A9D755CAED5997" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PlanAssetCategoriesDomain" xlink:label="loc_us-gaap_PlanAssetCategoriesDomain_CE82CED133B0E4F5F706D755CAEDE87C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_AFFBAAC69F689EC2D9A9D755CAED5997" xlink:to="loc_us-gaap_PlanAssetCategoriesDomain_CE82CED133B0E4F5F706D755CAEDE87C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PlanAssetCategoriesDomain" xlink:label="loc_us-gaap_PlanAssetCategoriesDomain_CE82CED133B0E4F5F706D755CAEDE87C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_AFFBAAC69F689EC2D9A9D755CAED5997" xlink:to="loc_us-gaap_PlanAssetCategoriesDomain_CE82CED133B0E4F5F706D755CAEDE87C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MoneyMarketFundsMember" xlink:label="loc_us-gaap_MoneyMarketFundsMember_C1E20585A8FE6DF28205D755CAEE7BCB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_CE82CED133B0E4F5F706D755CAEDE87C" xlink:to="loc_us-gaap_MoneyMarketFundsMember_C1E20585A8FE6DF28205D755CAEE7BCB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityFundsMember" xlink:label="loc_us-gaap_EquityFundsMember_234AA45E6666D721A46ED755CAEE7038" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_CE82CED133B0E4F5F706D755CAEDE87C" xlink:to="loc_us-gaap_EquityFundsMember_234AA45E6666D721A46ED755CAEE7038" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_LargeCapitalizationMember" xlink:label="loc_nx_LargeCapitalizationMember_F22B51180D9C1C11B189D755CAEEAE46" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityFundsMember_234AA45E6666D721A46ED755CAEE7038" xlink:to="loc_nx_LargeCapitalizationMember_F22B51180D9C1C11B189D755CAEEAE46" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_SmallcapitilizationMember" xlink:label="loc_nx_SmallcapitilizationMember_7C190CF885963B108A20D755CAEEF3D7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityFundsMember_234AA45E6666D721A46ED755CAEE7038" xlink:to="loc_nx_SmallcapitilizationMember_7C190CF885963B108A20D755CAEEF3D7" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_InternationalEquityMember" xlink:label="loc_nx_InternationalEquityMember_4544F5AFC3FC7155A174D755CAEEC5E6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityFundsMember_234AA45E6666D721A46ED755CAEE7038" xlink:to="loc_nx_InternationalEquityMember_4544F5AFC3FC7155A174D755CAEEC5E6" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_OtherAssetCategoryMember" xlink:label="loc_nx_OtherAssetCategoryMember_6FB9B854ED4F4DDF1E7CD755CAEF27DD" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityFundsMember_234AA45E6666D721A46ED755CAEE7038" xlink:to="loc_nx_OtherAssetCategoryMember_6FB9B854ED4F4DDF1E7CD755CAEF27DD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FixedIncomeFundsMember" xlink:label="loc_us-gaap_FixedIncomeFundsMember_23693B0CFAD385C1A4EFD755CAEFD13C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_CE82CED133B0E4F5F706D755CAEDE87C" xlink:to="loc_us-gaap_FixedIncomeFundsMember_23693B0CFAD385C1A4EFD755CAEFD13C" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_HighqualitycorebondMember" xlink:label="loc_nx_HighqualitycorebondMember_25116F51B449BA59B07DD755CAEF6DD4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FixedIncomeFundsMember_23693B0CFAD385C1A4EFD755CAEFD13C" xlink:to="loc_nx_HighqualitycorebondMember_25116F51B449BA59B07DD755CAEF6DD4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USTreasuryAndGovernmentMember" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_492AEF3D93893329033AD755CAEFAFA1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FixedIncomeFundsMember_23693B0CFAD385C1A4EFD755CAEFD13C" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_492AEF3D93893329033AD755CAEFAFA1" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_HighyieldbondMember" xlink:label="loc_nx_HighyieldbondMember_E1BC742707A3196A54D6D755CAEF9D9F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FixedIncomeFundsMember_23693B0CFAD385C1A4EFD755CAEFD13C" xlink:to="loc_nx_HighyieldbondMember_E1BC742707A3196A54D6D755CAEF9D9F" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_DefinedBenefitPlanEmployerContributionPercentageMatchOfCompensation" xlink:label="loc_nx_DefinedBenefitPlanEmployerContributionPercentageMatchOfCompensation_2EB3CD0D9269FFD06C99D755CAF0759F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_270AC2B6BF887C864C74D755CAF0CEC7" xlink:to="loc_nx_DefinedBenefitPlanEmployerContributionPercentageMatchOfCompensation_2EB3CD0D9269FFD06C99D755CAF0759F" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_DefinedBenefitPlanEmployerContributionPercentage" xlink:label="loc_nx_DefinedBenefitPlanEmployerContributionPercentage_2486C9E566F5B51C2CF4D755CAF0C6DE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_270AC2B6BF887C864C74D755CAF0CEC7" xlink:to="loc_nx_DefinedBenefitPlanEmployerContributionPercentage_2486C9E566F5B51C2CF4D755CAF0C6DE" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_PercentageOfEmployeesIncludedInPlan" xlink:label="loc_nx_PercentageOfEmployeesIncludedInPlan_08DC34E1215A52436623D755CAF01153" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_270AC2B6BF887C864C74D755CAF0CEC7" xlink:to="loc_nx_PercentageOfEmployeesIncludedInPlan_08DC34E1215A52436623D755CAF01153" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward" xlink:label="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_49401450EEDEB1C459D4D755CAF1A668" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_270AC2B6BF887C864C74D755CAF0CEC7" xlink:to="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_49401450EEDEB1C459D4D755CAF1A668" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanBenefitObligation" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_7F120669195FA8A6F890D755CAF18181" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_49401450EEDEB1C459D4D755CAF1A668" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligation_7F120669195FA8A6F890D755CAF18181" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanServiceCost" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_48D06CE4A864B73AAF41D755CAF1252F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_49401450EEDEB1C459D4D755CAF1A668" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_48D06CE4A864B73AAF41D755CAF1252F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanInterestCost" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_F1A7A5279B334943A9FBD755CAF1FB51" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_49401450EEDEB1C459D4D755CAF1A668" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_F1A7A5279B334943A9FBD755CAF1FB51" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanActuarialGainLoss" xlink:label="loc_us-gaap_DefinedBenefitPlanActuarialGainLoss_BD7B9BC1441EDE8C5ADCD755CAF19F9D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_49401450EEDEB1C459D4D755CAF1A668" xlink:to="loc_us-gaap_DefinedBenefitPlanActuarialGainLoss_BD7B9BC1441EDE8C5ADCD755CAF19F9D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanBenefitObligationBenefitsPaid" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligationBenefitsPaid_CC81B1D0620ED61DB3EDD755CAF1D73C" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_49401450EEDEB1C459D4D755CAF1A668" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligationBenefitsPaid_CC81B1D0620ED61DB3EDD755CAF1D73C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanAdministrationExpenses" xlink:label="loc_us-gaap_DefinedBenefitPlanAdministrationExpenses_2B10F56797008DE99620D755CAF2C425" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_49401450EEDEB1C459D4D755CAF1A668" xlink:to="loc_us-gaap_DefinedBenefitPlanAdministrationExpenses_2B10F56797008DE99620D755CAF2C425" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward" xlink:label="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_F3C53B53F0725D4E176CD755CAF271C6" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_270AC2B6BF887C864C74D755CAF0CEC7" xlink:to="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_F3C53B53F0725D4E176CD755CAF271C6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_579AB6797D40C9AFE7C4D755CAF27ED6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_F3C53B53F0725D4E176CD755CAF271C6" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_579AB6797D40C9AFE7C4D755CAF27ED6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanActualReturnOnPlanAssets" xlink:label="loc_us-gaap_DefinedBenefitPlanActualReturnOnPlanAssets_766A0395B745D840D634D755CAF38BCA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_F3C53B53F0725D4E176CD755CAF271C6" xlink:to="loc_us-gaap_DefinedBenefitPlanActualReturnOnPlanAssets_766A0395B745D840D634D755CAF38BCA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanContributionsByEmployer" xlink:label="loc_us-gaap_DefinedBenefitPlanContributionsByEmployer_450C6BC582CF69F71E68D755CAF3ADF7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_F3C53B53F0725D4E176CD755CAF271C6" xlink:to="loc_us-gaap_DefinedBenefitPlanContributionsByEmployer_450C6BC582CF69F71E68D755CAF3ADF7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanPlanAssetsBenefitsPaid" xlink:label="loc_us-gaap_DefinedBenefitPlanPlanAssetsBenefitsPaid_2021C133721A2CB72794D755CAF3C894" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_F3C53B53F0725D4E176CD755CAF271C6" xlink:to="loc_us-gaap_DefinedBenefitPlanPlanAssetsBenefitsPaid_2021C133721A2CB72794D755CAF3C894" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_DefinedBenefitPlanFundedUnfundedStatusofPlan" xlink:label="loc_nx_DefinedBenefitPlanFundedUnfundedStatusofPlan_F89F35C9293E54CF8249D755CAF35121" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_F3C53B53F0725D4E176CD755CAF271C6" xlink:to="loc_nx_DefinedBenefitPlanFundedUnfundedStatusofPlan_F89F35C9293E54CF8249D755CAF35121" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax_047A47874541EA5C0536D755CAF4A3E0" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_270AC2B6BF887C864C74D755CAF0CEC7" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax_047A47874541EA5C0536D755CAF4A3E0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanPensionPlansWithAccumulatedBenefitObligationsInExcessOfPlanAssetsAggregateAccumulatedBenefitObligation" xlink:label="loc_us-gaap_DefinedBenefitPlanPensionPlansWithAccumulatedBenefitObligationsInExcessOfPlanAssetsAggregateAccumulatedBenefitObligation_4BDD9BEEE66A75BD3293D755CAF4988D" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_270AC2B6BF887C864C74D755CAF0CEC7" xlink:to="loc_us-gaap_DefinedBenefitPlanPensionPlansWithAccumulatedBenefitObligationsInExcessOfPlanAssetsAggregateAccumulatedBenefitObligation_4BDD9BEEE66A75BD3293D755CAF4988D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_7A8586F1AA3C9EC3C214D755CAF4F8A0" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_270AC2B6BF887C864C74D755CAF0CEC7" xlink:to="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_7A8586F1AA3C9EC3C214D755CAF4F8A0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_4FFDC084B8810417156ED755CAF5EA9D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_7A8586F1AA3C9EC3C214D755CAF4F8A0" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_4FFDC084B8810417156ED755CAF5EA9D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_58DEB950426EA9176F14D755CAF521E5" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_7A8586F1AA3C9EC3C214D755CAF4F8A0" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_58DEB950426EA9176F14D755CAF521E5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_05900A9F82681477D84FD755CAF59AF9" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_7A8586F1AA3C9EC3C214D755CAF4F8A0" xlink:to="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_05900A9F82681477D84FD755CAF59AF9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPeriodIncreaseDecreaseAbstract" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPeriodIncreaseDecreaseAbstract_5A15946AFE4BFA3A6F1FD755CAF5AFC1" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_7A8586F1AA3C9EC3C214D755CAF4F8A0" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPeriodIncreaseDecreaseAbstract_5A15946AFE4BFA3A6F1FD755CAF5AFC1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeLossNetGainLossBeforeTax" xlink:label="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeLossNetGainLossBeforeTax_D0209FC5591347197BCAD755CAF5EDD9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPeriodIncreaseDecreaseAbstract_5A15946AFE4BFA3A6F1FD755CAF5AFC1" xlink:to="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeLossNetGainLossBeforeTax_D0209FC5591347197BCAD755CAF5EDD9" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_DefinedBenefitPlanAmortizationofGainslossesNet" xlink:label="loc_nx_DefinedBenefitPlanAmortizationofGainslossesNet_4BBB651B989F9A570B38D755CAF63C00" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPeriodIncreaseDecreaseAbstract_5A15946AFE4BFA3A6F1FD755CAF5AFC1" xlink:to="loc_nx_DefinedBenefitPlanAmortizationofGainslossesNet_4BBB651B989F9A570B38D755CAF63C00" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_72A525F0D6EA221761BAD755CAF685E7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPeriodIncreaseDecreaseAbstract_5A15946AFE4BFA3A6F1FD755CAF5AFC1" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_72A525F0D6EA221761BAD755CAF685E7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedInCalculationsAbstract" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedInCalculationsAbstract_4ED507D860E91B5EC513D755CAF6241F" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_270AC2B6BF887C864C74D755CAF0CEC7" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedInCalculationsAbstract_4ED507D860E91B5EC513D755CAF6241F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate_CA1C255FB00A86CC16A8D755CAF6C74F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedInCalculationsAbstract_4ED507D860E91B5EC513D755CAF6241F" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate_CA1C255FB00A86CC16A8D755CAF6C74F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationRateOfCompensationIncrease" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationRateOfCompensationIncrease_C7D347F8DB1EB2E9A388D755CAF7F11E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedInCalculationsAbstract_4ED507D860E91B5EC513D755CAF6241F" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationRateOfCompensationIncrease_C7D347F8DB1EB2E9A388D755CAF7F11E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate_DB7CEE2846CA901D2EB4D755CAF74F1F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedInCalculationsAbstract_4ED507D860E91B5EC513D755CAF6241F" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate_DB7CEE2846CA901D2EB4D755CAF74F1F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease_4C27959BFC56F28F4F18D755CAF7F42A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedInCalculationsAbstract_4ED507D860E91B5EC513D755CAF6241F" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease_4C27959BFC56F28F4F18D755CAF7F42A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets_298F41CA30F180DBAB85D755CAF71721" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedInCalculationsAbstract_4ED507D860E91B5EC513D755CAF6241F" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets_298F41CA30F180DBAB85D755CAF71721" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanPlanAssetsTargetAllocationPercentage" xlink:label="loc_us-gaap_DefinedBenefitPlanPlanAssetsTargetAllocationPercentage_DAD3CAD5C156C2EB14C1D755CAF7D158" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_270AC2B6BF887C864C74D755CAF0CEC7" xlink:to="loc_us-gaap_DefinedBenefitPlanPlanAssetsTargetAllocationPercentage_DAD3CAD5C156C2EB14C1D755CAF7D158" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanWeightedAverageAssetAllocations" xlink:label="loc_us-gaap_DefinedBenefitPlanWeightedAverageAssetAllocations_DAFBE092A818B53AFE10D755CAF824A5" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_270AC2B6BF887C864C74D755CAF0CEC7" xlink:to="loc_us-gaap_DefinedBenefitPlanWeightedAverageAssetAllocations_DAFBE092A818B53AFE10D755CAF824A5" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_Contributionstargetfundedstatus" xlink:label="loc_nx_Contributionstargetfundedstatus_B2AAA500467CA4D278F2D755CAF882B3" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_270AC2B6BF887C864C74D755CAF0CEC7" xlink:to="loc_nx_Contributionstargetfundedstatus_B2AAA500467CA4D278F2D755CAF882B3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureEmployerContributionsNextFiscalYear" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureEmployerContributionsNextFiscalYear_7CDD5CC97E7F1C8A4D19D755CAF886D9" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_270AC2B6BF887C864C74D755CAF0CEC7" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureEmployerContributionsNextFiscalYear_7CDD5CC97E7F1C8A4D19D755CAF886D9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanEstimatedFutureBenefitPaymentsAbstract" xlink:label="loc_us-gaap_DefinedBenefitPlanEstimatedFutureBenefitPaymentsAbstract_6C70ED25FD076E82969AD755CAF9A81D" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_270AC2B6BF887C864C74D755CAF0CEC7" xlink:to="loc_us-gaap_DefinedBenefitPlanEstimatedFutureBenefitPaymentsAbstract_6C70ED25FD076E82969AD755CAF9A81D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths_D0CB41359DB7486E8C4BD755CAF95377" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanEstimatedFutureBenefitPaymentsAbstract_6C70ED25FD076E82969AD755CAF9A81D" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths_D0CB41359DB7486E8C4BD755CAF95377" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo_480E2FE88BBB480823D3D755CAF949D9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanEstimatedFutureBenefitPaymentsAbstract_6C70ED25FD076E82969AD755CAF9A81D" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo_480E2FE88BBB480823D3D755CAF949D9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree_BFC660591F7B55F6BD5ED755CAF9D9DD" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanEstimatedFutureBenefitPaymentsAbstract_6C70ED25FD076E82969AD755CAF9A81D" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree_BFC660591F7B55F6BD5ED755CAF9D9DD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour_B2C5ACDB90D41C5ECE00D755CAFADE01" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanEstimatedFutureBenefitPaymentsAbstract_6C70ED25FD076E82969AD755CAF9A81D" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour_B2C5ACDB90D41C5ECE00D755CAFADE01" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive_7395D1788DDB7D0B2B87D755CAFA549C" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanEstimatedFutureBenefitPaymentsAbstract_6C70ED25FD076E82969AD755CAF9A81D" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive_7395D1788DDB7D0B2B87D755CAFA549C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter_A5D8711D145741DC55A6D755CAFA5472" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanEstimatedFutureBenefitPaymentsAbstract_6C70ED25FD076E82969AD755CAF9A81D" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter_A5D8711D145741DC55A6D755CAFA5472" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_DefinedBenefitPlanExpectedFutureBenefitPayments" xlink:label="loc_nx_DefinedBenefitPlanExpectedFutureBenefitPayments_BC6FC95DEC036FC6F168D755CAFAE190" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanEstimatedFutureBenefitPaymentsAbstract_6C70ED25FD076E82969AD755CAF9A81D" xlink:to="loc_nx_DefinedBenefitPlanExpectedFutureBenefitPayments_BC6FC95DEC036FC6F168D755CAFAE190" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent" xlink:label="loc_us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent_036F61D4BE601ECD04D1D755CAFA712B" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_270AC2B6BF887C864C74D755CAF0CEC7" xlink:to="loc_us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent_036F61D4BE601ECD04D1D755CAFA712B" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_DefinedContributionEmployerMatchofEmployeeAmount" xlink:label="loc_nx_DefinedContributionEmployerMatchofEmployeeAmount_0CE00DCA9CE9F29D3895D755CAFBEDF8" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_270AC2B6BF887C864C74D755CAF0CEC7" xlink:to="loc_nx_DefinedContributionEmployerMatchofEmployeeAmount_0CE00DCA9CE9F29D3895D755CAFBEDF8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount" xlink:label="loc_us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount_C6FDD157255FF636DD7AD755CAFBBE4A" xlink:type="locator" />
    <link:definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_270AC2B6BF887C864C74D755CAF0CEC7" xlink:to="loc_us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount_C6FDD157255FF636DD7AD755CAFBBE4A" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_Postretirementdefinedbenefitplanscurrentliabilities" xlink:label="loc_nx_Postretirementdefinedbenefitplanscurrentliabilities_8A1B602B46F784A16A58D755CAFB730A" xlink:type="locator" />
    <link:definitionArc order="20" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_270AC2B6BF887C864C74D755CAF0CEC7" xlink:to="loc_nx_Postretirementdefinedbenefitplanscurrentliabilities_8A1B602B46F784A16A58D755CAFB730A" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_Postretirementdefinedbenefitplansnoncurrentliabilities" xlink:label="loc_nx_Postretirementdefinedbenefitplansnoncurrentliabilities_BBB6D718E47E5F68CA8CD755CAFBED21" xlink:type="locator" />
    <link:definitionArc order="21" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_270AC2B6BF887C864C74D755CAF0CEC7" xlink:to="loc_nx_Postretirementdefinedbenefitplansnoncurrentliabilities_BBB6D718E47E5F68CA8CD755CAFBED21" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent_BBB02E48AFCB97B40DC9D755CAFB2623" xlink:type="locator" />
    <link:definitionArc order="22" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_270AC2B6BF887C864C74D755CAF0CEC7" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent_BBB02E48AFCB97B40DC9D755CAFB2623" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherDeferredCompensationArrangementsLiabilityCurrentAndNoncurrent" xlink:label="loc_us-gaap_OtherDeferredCompensationArrangementsLiabilityCurrentAndNoncurrent_D5DA0A809F0097733B78D755CAFB0F4D" xlink:type="locator" />
    <link:definitionArc order="23" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_270AC2B6BF887C864C74D755CAF0CEC7" xlink:to="loc_us-gaap_OtherDeferredCompensationArrangementsLiabilityCurrentAndNoncurrent_D5DA0A809F0097733B78D755CAFB0F4D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredCompensationLiabilityCurrentAndNoncurrent" xlink:label="loc_us-gaap_DeferredCompensationLiabilityCurrentAndNoncurrent_47146E06685C99FDE1BED755CAFC34D8" xlink:type="locator" />
    <link:definitionArc order="24" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_270AC2B6BF887C864C74D755CAF0CEC7" xlink:to="loc_us-gaap_DeferredCompensationLiabilityCurrentAndNoncurrent_47146E06685C99FDE1BED755CAFC34D8" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/RetirementPlansTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/SegmentInformation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/SegmentInformationDetail" 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_302E6FDFD8E0B8EE5D26D2237D7C8FF2" 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_B70EA8931BE00610572AD2237D707D29" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_302E6FDFD8E0B8EE5D26D2237D7C8FF2" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_B70EA8931BE00610572AD2237D707D29" 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_StatementOperatingActivitiesSegmentAxis" xlink:label="loc_us-gaap_StatementOperatingActivitiesSegmentAxis_A4998065D666E1188735D2237D71B415" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_B70EA8931BE00610572AD2237D707D29" xlink:to="loc_us-gaap_StatementOperatingActivitiesSegmentAxis_A4998065D666E1188735D2237D71B415" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentOperatingActivitiesDomain" xlink:label="loc_us-gaap_SegmentOperatingActivitiesDomain_069E5E49C5DDB1B14D24D2237D711444_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementOperatingActivitiesSegmentAxis_A4998065D666E1188735D2237D71B415" xlink:to="loc_us-gaap_SegmentOperatingActivitiesDomain_069E5E49C5DDB1B14D24D2237D711444_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentOperatingActivitiesDomain" xlink:label="loc_us-gaap_SegmentOperatingActivitiesDomain_069E5E49C5DDB1B14D24D2237D711444" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementOperatingActivitiesSegmentAxis_A4998065D666E1188735D2237D71B415" xlink:to="loc_us-gaap_SegmentOperatingActivitiesDomain_069E5E49C5DDB1B14D24D2237D711444" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentContinuingOperationsMember" xlink:label="loc_us-gaap_SegmentContinuingOperationsMember_59A66C07C794B5A1AF26D2237D72182C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentOperatingActivitiesDomain_069E5E49C5DDB1B14D24D2237D711444" xlink:to="loc_us-gaap_SegmentContinuingOperationsMember_59A66C07C794B5A1AF26D2237D72182C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_51114A5F2F5DD88E2F59D2237D7299AB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_B70EA8931BE00610572AD2237D707D29" xlink:to="loc_srt_ConsolidationItemsAxis_51114A5F2F5DD88E2F59D2237D7299AB" 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_16863FDB24C18000843DD2237D72956D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_51114A5F2F5DD88E2F59D2237D7299AB" xlink:to="loc_srt_ConsolidationItemsDomain_16863FDB24C18000843DD2237D72956D_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_16863FDB24C18000843DD2237D72956D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_51114A5F2F5DD88E2F59D2237D7299AB" xlink:to="loc_srt_ConsolidationItemsDomain_16863FDB24C18000843DD2237D72956D" 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_9A6F71C3528C2E3F5ACDD2237D73296F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_16863FDB24C18000843DD2237D72956D" xlink:to="loc_us-gaap_OperatingSegmentsMember_9A6F71C3528C2E3F5ACDD2237D73296F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IntersegmentEliminationMember" xlink:label="loc_us-gaap_IntersegmentEliminationMember_7C1A2798A514A9EDEBA0D2237D734AE9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_16863FDB24C18000843DD2237D72956D" xlink:to="loc_us-gaap_IntersegmentEliminationMember_7C1A2798A514A9EDEBA0D2237D734AE9" 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_58C0D6CBF4045678914CD2237D73A625" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_16863FDB24C18000843DD2237D72956D" xlink:to="loc_us-gaap_CorporateNonSegmentMember_58C0D6CBF4045678914CD2237D73A625" 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_856999B2E01253D663AAD2237D731113" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_B70EA8931BE00610572AD2237D707D29" xlink:to="loc_srt_ProductOrServiceAxis_856999B2E01253D663AAD2237D731113" 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_9635B482A8356C4F5401D2237D7390F6_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_856999B2E01253D663AAD2237D731113" xlink:to="loc_srt_ProductsAndServicesDomain_9635B482A8356C4F5401D2237D7390F6_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_9635B482A8356C4F5401D2237D7390F6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_856999B2E01253D663AAD2237D731113" xlink:to="loc_srt_ProductsAndServicesDomain_9635B482A8356C4F5401D2237D7390F6" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_NonfenestrationMember" xlink:label="loc_nx_NonfenestrationMember_3782F555AF60A4DC4C92D2237D74F5B5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_9635B482A8356C4F5401D2237D7390F6" xlink:to="loc_nx_NonfenestrationMember_3782F555AF60A4DC4C92D2237D74F5B5" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_FenestrationMember" xlink:label="loc_nx_FenestrationMember_F43FA512A78FDEAD1AF4D2237D74B47F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_9635B482A8356C4F5401D2237D7390F6" xlink:to="loc_nx_FenestrationMember_F43FA512A78FDEAD1AF4D2237D74B47F" 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_CF1A230C86D1D335EDC3D2237D74A921" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_B70EA8931BE00610572AD2237D707D29" xlink:to="loc_srt_StatementGeographicalAxis_CF1A230C86D1D335EDC3D2237D74A921" 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_208F91317C8C749901B7D2237D7474B0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_CF1A230C86D1D335EDC3D2237D74A921" xlink:to="loc_srt_SegmentGeographicalDomain_208F91317C8C749901B7D2237D7474B0_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_208F91317C8C749901B7D2237D7474B0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_CF1A230C86D1D335EDC3D2237D74A921" xlink:to="loc_srt_SegmentGeographicalDomain_208F91317C8C749901B7D2237D7474B0" 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_72542267E5AECC4C53BDD2237D75446B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_208F91317C8C749901B7D2237D7474B0" xlink:to="loc_country_US_72542267E5AECC4C53BDD2237D75446B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_EuropeMember" xlink:label="loc_srt_EuropeMember_9B0E6B82D4CA550F2697D2237D750759" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_208F91317C8C749901B7D2237D7474B0" xlink:to="loc_srt_EuropeMember_9B0E6B82D4CA550F2697D2237D750759" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_CA" xlink:label="loc_country_CA_87BDBF6796EB9E01FC3BD2237D756C26" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_208F91317C8C749901B7D2237D7474B0" xlink:to="loc_country_CA_87BDBF6796EB9E01FC3BD2237D756C26" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_AsiaMember" xlink:label="loc_srt_AsiaMember_2F9B95306768C0C29158D2237D757B59" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_208F91317C8C749901B7D2237D7474B0" xlink:to="loc_srt_AsiaMember_2F9B95306768C0C29158D2237D757B59" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_OtherForeignCountriesMember" xlink:label="loc_nx_OtherForeignCountriesMember_394A4EBCCD918DAE8B15D2237D763FE4" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_208F91317C8C749901B7D2237D7474B0" xlink:to="loc_nx_OtherForeignCountriesMember_394A4EBCCD918DAE8B15D2237D763FE4" 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_0FA7DC471CCF8D6A4298D2237D76EA24" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_208F91317C8C749901B7D2237D7474B0" xlink:to="loc_country_DE_0FA7DC471CCF8D6A4298D2237D76EA24" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_InternationalMember" xlink:label="loc_nx_InternationalMember_878C8C42EF659C5AE7CDD2237D768EC2" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_208F91317C8C749901B7D2237D7474B0" xlink:to="loc_nx_InternationalMember_878C8C42EF659C5AE7CDD2237D768EC2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_GB" xlink:label="loc_country_GB_5F16D4B3471DB846D75CD2237D7678D0" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_208F91317C8C749901B7D2237D7474B0" xlink:to="loc_country_GB_5F16D4B3471DB846D75CD2237D7678D0" 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_156D2437EB38E2FD0366D2237D77C42D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_B70EA8931BE00610572AD2237D707D29" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_156D2437EB38E2FD0366D2237D77C42D" 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_43E8F204F91148D89816D2237D77F7E0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_156D2437EB38E2FD0366D2237D77C42D" xlink:to="loc_us-gaap_SegmentDomain_43E8F204F91148D89816D2237D77F7E0_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_43E8F204F91148D89816D2237D77F7E0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_156D2437EB38E2FD0366D2237D77C42D" xlink:to="loc_us-gaap_SegmentDomain_43E8F204F91148D89816D2237D77F7E0" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_NAEngineeredComponentsMember" xlink:label="loc_nx_NAEngineeredComponentsMember_76C8A0A431C90CAC50A8D2237D772498" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_43E8F204F91148D89816D2237D77F7E0" xlink:to="loc_nx_NAEngineeredComponentsMember_76C8A0A431C90CAC50A8D2237D772498" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_EUEngineeredComponentsMember" xlink:label="loc_nx_EUEngineeredComponentsMember_88E4F41E529190728834D2237D7CBB9E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_43E8F204F91148D89816D2237D77F7E0" xlink:to="loc_nx_EUEngineeredComponentsMember_88E4F41E529190728834D2237D7CBB9E" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_NACabinetComponentsMember" xlink:label="loc_nx_NACabinetComponentsMember_FC152F82DDC8052728A1D2237D7CB8C8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_43E8F204F91148D89816D2237D77F7E0" xlink:to="loc_nx_NACabinetComponentsMember_FC152F82DDC8052728A1D2237D7CB8C8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_0C48F34E46012A9F1075D2237D7C6320" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_302E6FDFD8E0B8EE5D26D2237D7C8FF2" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_0C48F34E46012A9F1075D2237D7C6320" 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_EB481C5A5759AF9358CAD2237D7D55BB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_302E6FDFD8E0B8EE5D26D2237D7C8FF2" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_EB481C5A5759AF9358CAD2237D7D55BB" 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_4083ABC65C6736BB4AFBD2237D7DCF07" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_302E6FDFD8E0B8EE5D26D2237D7C8FF2" xlink:to="loc_us-gaap_NumberOfReportableSegments_4083ABC65C6736BB4AFBD2237D7DCF07" 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_D8D1DCBC6091C459CD1FD2237D7D4762" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_302E6FDFD8E0B8EE5D26D2237D7C8FF2" xlink:to="loc_us-gaap_NumberOfOperatingSegments_D8D1DCBC6091C459CD1FD2237D7D4762" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Revenues" xlink:label="loc_us-gaap_Revenues_9F111222329CBAFB1ACAD2237D7D7112" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_302E6FDFD8E0B8EE5D26D2237D7C8FF2" xlink:to="loc_us-gaap_Revenues_9F111222329CBAFB1ACAD2237D7D7112" 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_B9E3B4CCAD43EC619911D2237D7ED190" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_302E6FDFD8E0B8EE5D26D2237D7C8FF2" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_B9E3B4CCAD43EC619911D2237D7ED190" 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_D8233331D67FCDB2DC77D2237D7EEB41" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_302E6FDFD8E0B8EE5D26D2237D7C8FF2" xlink:to="loc_us-gaap_OperatingIncomeLoss_D8233331D67FCDB2DC77D2237D7EEB41" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaap_InterestExpense_CEB6BB635E75CCAD5FC4D2237D7EF947" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_302E6FDFD8E0B8EE5D26D2237D7C8FF2" xlink:to="loc_us-gaap_InterestExpense_CEB6BB635E75CCAD5FC4D2237D7EF947" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_B1C40FFAB6710E6A3CF7D2237D7EAF4B" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_302E6FDFD8E0B8EE5D26D2237D7C8FF2" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_B1C40FFAB6710E6A3CF7D2237D7EAF4B" 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_919EF794E23786F18810D2237D7E3149" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_302E6FDFD8E0B8EE5D26D2237D7C8FF2" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_919EF794E23786F18810D2237D7E3149" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoncurrentAssets" xlink:label="loc_us-gaap_NoncurrentAssets_1FF7235458EE02EF38EBD2237D7F229D" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_302E6FDFD8E0B8EE5D26D2237D7C8FF2" xlink:to="loc_us-gaap_NoncurrentAssets_1FF7235458EE02EF38EBD2237D7F229D" 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_D13CC164C33101409E15D2237D7F942C" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_302E6FDFD8E0B8EE5D26D2237D7C8FF2" xlink:to="loc_us-gaap_Goodwill_D13CC164C33101409E15D2237D7F942C" 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_0FE41EB813EF92BC6259D2237D7F68DD" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_302E6FDFD8E0B8EE5D26D2237D7C8FF2" xlink:to="loc_us-gaap_Assets_0FE41EB813EF92BC6259D2237D7F68DD" 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_D1E6DC89D42D5D24FFBBD2237D7F0702" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_302E6FDFD8E0B8EE5D26D2237D7C8FF2" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_D1E6DC89D42D5D24FFBBD2237D7F0702" 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_7A0A73AFAC77EA1E5096D2237D8098C7" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_302E6FDFD8E0B8EE5D26D2237D7C8FF2" xlink:to="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_7A0A73AFAC77EA1E5096D2237D8098C7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_7061DAB9F6E90C721FEED2237D80F633" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_302E6FDFD8E0B8EE5D26D2237D7C8FF2" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_7061DAB9F6E90C721FEED2237D80F633" 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_4BD208281927B81DD99BD220EA8D13C2" 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_691ED16E523F9204B2FAD220EA87DA4B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4BD208281927B81DD99BD220EA8D13C2" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_691ED16E523F9204B2FAD220EA87DA4B" 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_VestingAxis" xlink:label="loc_us-gaap_VestingAxis_816DBE4376EEB42F2570D220EA87E5C8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_691ED16E523F9204B2FAD220EA87DA4B" xlink:to="loc_us-gaap_VestingAxis_816DBE4376EEB42F2570D220EA87E5C8" 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_35B1F1DBE239CAD16FB3D220EA8824F9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VestingAxis_816DBE4376EEB42F2570D220EA87E5C8" xlink:to="loc_us-gaap_VestingDomain_35B1F1DBE239CAD16FB3D220EA8824F9_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_35B1F1DBE239CAD16FB3D220EA8824F9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VestingAxis_816DBE4376EEB42F2570D220EA87E5C8" xlink:to="loc_us-gaap_VestingDomain_35B1F1DBE239CAD16FB3D220EA8824F9" 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_645382655731708E62C4D220EA88DBB9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_35B1F1DBE239CAD16FB3D220EA8824F9" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheOneMember_645382655731708E62C4D220EA88DBB9" 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_2F99CC18B06A66EFD0E2D220EA885317" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_35B1F1DBE239CAD16FB3D220EA8824F9" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheTwoMember_2F99CC18B06A66EFD0E2D220EA885317" 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_57F54B7BF1B90DF22AE9D220EA89BCAF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_35B1F1DBE239CAD16FB3D220EA8824F9" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheThreeMember_57F54B7BF1B90DF22AE9D220EA89BCAF" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_ShareBasedCompensationAwardTrancheFourMember" xlink:label="loc_nx_ShareBasedCompensationAwardTrancheFourMember_E071E36B696FAE477B43D220EA89338B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_35B1F1DBE239CAD16FB3D220EA8824F9" xlink:to="loc_nx_ShareBasedCompensationAwardTrancheFourMember_E071E36B696FAE477B43D220EA89338B" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_ShareBasedCompensationAwardPerformanceCriteriaAxis" xlink:label="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAxis_87C23CE07E99AC45C8FAD220EA896184" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_691ED16E523F9204B2FAD220EA87DA4B" xlink:to="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAxis_87C23CE07E99AC45C8FAD220EA896184" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_ShareBasedCompensationAwardPerformanceCriteriaDomain" xlink:label="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaDomain_2DDD951893F98C7FBFA1D220EA894655_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAxis_87C23CE07E99AC45C8FAD220EA896184" xlink:to="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaDomain_2DDD951893F98C7FBFA1D220EA894655_default" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_ShareBasedCompensationAwardPerformanceCriteriaDomain" xlink:label="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaDomain_2DDD951893F98C7FBFA1D220EA894655" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAxis_87C23CE07E99AC45C8FAD220EA896184" xlink:to="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaDomain_2DDD951893F98C7FBFA1D220EA894655" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesGreaterThanOrEqualTo50PercentMember" xlink:label="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesGreaterThanOrEqualTo50PercentMember_64F7CD8ECB3DB5E86D08D220EA8933D2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaDomain_2DDD951893F98C7FBFA1D220EA894655" xlink:to="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesGreaterThanOrEqualTo50PercentMember_64F7CD8ECB3DB5E86D08D220EA8933D2" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesLessThan50PercentAndGreaterThanOrEqualTo20PercentMember" xlink:label="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesLessThan50PercentAndGreaterThanOrEqualTo20PercentMember_F2D1E0E9E2BED10D350CD220EA8AF2E4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaDomain_2DDD951893F98C7FBFA1D220EA894655" xlink:to="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesLessThan50PercentAndGreaterThanOrEqualTo20PercentMember_F2D1E0E9E2BED10D350CD220EA8AF2E4" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesLessThan20PercentAndGreaterThanOrEqualToNegative20PercentMember" xlink:label="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesLessThan20PercentAndGreaterThanOrEqualToNegative20PercentMember_114C16277546E0474FD7D220EA8A6FCE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaDomain_2DDD951893F98C7FBFA1D220EA894655" xlink:to="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesLessThan20PercentAndGreaterThanOrEqualToNegative20PercentMember_114C16277546E0474FD7D220EA8A6FCE" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesLessThanNegative20PercentMember" xlink:label="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesLessThanNegative20PercentMember_5DB24718C8C93B92923FD220EA8AE714" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaDomain_2DDD951893F98C7FBFA1D220EA894655" xlink:to="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesLessThanNegative20PercentMember_5DB24718C8C93B92923FD220EA8AE714" 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_E9787436D7D720061ADAD220EA8AF9CD" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_691ED16E523F9204B2FAD220EA87DA4B" xlink:to="loc_srt_RangeAxis_E9787436D7D720061ADAD220EA8AF9CD" 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_799916E8271A0C489728D220EA8BE64B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_E9787436D7D720061ADAD220EA8AF9CD" xlink:to="loc_srt_RangeMember_799916E8271A0C489728D220EA8BE64B_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_799916E8271A0C489728D220EA8BE64B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_E9787436D7D720061ADAD220EA8AF9CD" xlink:to="loc_srt_RangeMember_799916E8271A0C489728D220EA8BE64B" 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_F4EFDF2853013A90D48BD220EA8B15CB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_799916E8271A0C489728D220EA8BE64B" xlink:to="loc_srt_MinimumMember_F4EFDF2853013A90D48BD220EA8B15CB" 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_D46524251D2BEE0AFD9CD220EA8B3C8B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_799916E8271A0C489728D220EA8BE64B" xlink:to="loc_srt_MaximumMember_D46524251D2BEE0AFD9CD220EA8B3C8B" 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_AC6132A9AB52ACF2562CD220EA8BD6C8" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_691ED16E523F9204B2FAD220EA87DA4B" xlink:to="loc_us-gaap_AwardTypeAxis_AC6132A9AB52ACF2562CD220EA8BD6C8" 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_DF0661E6FCFB38DDE7C6D220EA8BA982_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_AC6132A9AB52ACF2562CD220EA8BD6C8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_DF0661E6FCFB38DDE7C6D220EA8BA982_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_DF0661E6FCFB38DDE7C6D220EA8BA982" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_AC6132A9AB52ACF2562CD220EA8BD6C8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_DF0661E6FCFB38DDE7C6D220EA8BA982" 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_B97EB32ED5A3C2EA1780D220EA8C47D9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_DF0661E6FCFB38DDE7C6D220EA8BA982" xlink:to="loc_us-gaap_RestrictedStockMember_B97EB32ED5A3C2EA1780D220EA8C47D9" 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_FA9A78A9898AB3186509D220EA8C724D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_DF0661E6FCFB38DDE7C6D220EA8BA982" xlink:to="loc_us-gaap_EmployeeStockOptionMember_FA9A78A9898AB3186509D220EA8C724D" 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_8F507EB8ED6F7D948D1CD220EA8CB7E4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_DF0661E6FCFB38DDE7C6D220EA8BA982" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_8F507EB8ED6F7D948D1CD220EA8CB7E4" 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_96C647FF81DFADBD2896D220EA8CDEC9" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_DF0661E6FCFB38DDE7C6D220EA8BA982" xlink:to="loc_us-gaap_PerformanceSharesMember_96C647FF81DFADBD2896D220EA8CDEC9" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_PerformanceRestrictedStockUnitsMember" xlink:label="loc_nx_PerformanceRestrictedStockUnitsMember_DB0534B8827BFC8B54CFD220EA8D4BB8" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_DF0661E6FCFB38DDE7C6D220EA8BA982" xlink:to="loc_nx_PerformanceRestrictedStockUnitsMember_DB0534B8827BFC8B54CFD220EA8D4BB8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockSharesAcquired" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_5AE26E2874D0C4FAD4B3D220EA8DE61C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4BD208281927B81DD99BD220EA8D13C2" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_5AE26E2874D0C4FAD4B3D220EA8DE61C" 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_314A89DBA29B5CED8FC1D220EA8D39D8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4BD208281927B81DD99BD220EA8D13C2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_314A89DBA29B5CED8FC1D220EA8D39D8" 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_8CADEF7B0831B81FA467D220EA8E4E90" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_314A89DBA29B5CED8FC1D220EA8D39D8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_8CADEF7B0831B81FA467D220EA8E4E90" 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_B9FA450782C7EFE8705DD220EA8ECD9A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_314A89DBA29B5CED8FC1D220EA8D39D8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_B9FA450782C7EFE8705DD220EA8ECD9A" 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_4B25B2999E177B4FA6DFD220EA8E5F41" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_314A89DBA29B5CED8FC1D220EA8D39D8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_4B25B2999E177B4FA6DFD220EA8E5F41" 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_9102688C859ADA1F837DD220EA8E3911" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_314A89DBA29B5CED8FC1D220EA8D39D8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_9102688C859ADA1F837DD220EA8E3911" 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_CFB7FF3273AE85EB128BD220EA8FBFEA" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4BD208281927B81DD99BD220EA8D13C2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_CFB7FF3273AE85EB128BD220EA8FBFEA" 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_FF1409B3C29227E3168AD220EA8FC444" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_CFB7FF3273AE85EB128BD220EA8FBFEA" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_FF1409B3C29227E3168AD220EA8FC444" 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_003BE9FE423CEC774126D220EA8FDB82" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_CFB7FF3273AE85EB128BD220EA8FBFEA" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_003BE9FE423CEC774126D220EA8FDB82" 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_DF3C1683E49379B6FC75D220EA8FD064" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_CFB7FF3273AE85EB128BD220EA8FBFEA" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_DF3C1683E49379B6FC75D220EA8FD064" 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_AA4384D9A5A0B544179CD220EA90E79E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_CFB7FF3273AE85EB128BD220EA8FBFEA" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_AA4384D9A5A0B544179CD220EA90E79E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_E3C673430C656580D181D220EA900A59" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4BD208281927B81DD99BD220EA8D13C2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_E3C673430C656580D181D220EA900A59" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsWeightedAverageVolatilityRate" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsWeightedAverageVolatilityRate_56107DC0148EC5D83FF8D220EA9022A3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_E3C673430C656580D181D220EA900A59" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsWeightedAverageVolatilityRate_56107DC0148EC5D83FF8D220EA9022A3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_DD7A0249E2067BAF4780D220EA934024" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_E3C673430C656580D181D220EA900A59" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_DD7A0249E2067BAF4780D220EA934024" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_6346AF15677CA19084D1D220EA94E61F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_E3C673430C656580D181D220EA900A59" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_6346AF15677CA19084D1D220EA94E61F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_66DE6F67E814E322A985D220EA949520" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_E3C673430C656580D181D220EA900A59" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_66DE6F67E814E322A985D220EA949520" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_D5045ACFD1970AA272DAD220EA94512D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_E3C673430C656580D181D220EA900A59" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_D5045ACFD1970AA272DAD220EA94512D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_833DC95C20BE73916CD6D220EA946C0F" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4BD208281927B81DD99BD220EA8D13C2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_833DC95C20BE73916CD6D220EA946C0F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_E27B6ACB5FF5E9C06DAAD220EA950996" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_833DC95C20BE73916CD6D220EA946C0F" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_E27B6ACB5FF5E9C06DAAD220EA950996" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriod_8B1454FBB03FF38EE330D220EA95A4CB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_833DC95C20BE73916CD6D220EA946C0F" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriod_8B1454FBB03FF38EE330D220EA95A4CB" 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_C74F0D61668EFE58D9A6D220EA9561D8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_833DC95C20BE73916CD6D220EA946C0F" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_C74F0D61668EFE58D9A6D220EA9561D8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod_FA2C1E6732D68B564E39D220EA950A7A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_833DC95C20BE73916CD6D220EA946C0F" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod_FA2C1E6732D68B564E39D220EA950A7A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber_BBCF2F71377B625DE3E3D220EA96A2EE" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_833DC95C20BE73916CD6D220EA946C0F" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber_BBCF2F71377B625DE3E3D220EA96A2EE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber_146C3C1726F74B1E6D7AD220EA96A48C" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_833DC95C20BE73916CD6D220EA946C0F" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber_146C3C1726F74B1E6D7AD220EA96A48C" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsWeightedAverageExercisePriceAbstract" xlink:label="loc_nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsWeightedAverageExercisePriceAbstract_D5C4954A675DBB578B3CD220EA965AF0" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4BD208281927B81DD99BD220EA8D13C2" xlink:to="loc_nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsWeightedAverageExercisePriceAbstract_D5C4954A675DBB578B3CD220EA965AF0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_40BC6C6A15C4450E53EBD220EA964E28" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsWeightedAverageExercisePriceAbstract_D5C4954A675DBB578B3CD220EA965AF0" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_40BC6C6A15C4450E53EBD220EA964E28" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_9ADBD7C7381185FE7871D220EA97F113" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsWeightedAverageExercisePriceAbstract_D5C4954A675DBB578B3CD220EA965AF0" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_9ADBD7C7381185FE7871D220EA97F113" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_DB17BC98D8690CE09B37D220EA97FA31" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsWeightedAverageExercisePriceAbstract_D5C4954A675DBB578B3CD220EA965AF0" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_DB17BC98D8690CE09B37D220EA97FA31" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice_177C9256F8834764CB00D220EA97EB7C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsWeightedAverageExercisePriceAbstract_D5C4954A675DBB578B3CD220EA965AF0" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice_177C9256F8834764CB00D220EA97EB7C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice_C7F7CF62F450934CAEFBD220EA976AAF" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsWeightedAverageExercisePriceAbstract_D5C4954A675DBB578B3CD220EA965AF0" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice_C7F7CF62F450934CAEFBD220EA976AAF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice_15AF147C4105D56ED2F8D220EA98AFE7" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsWeightedAverageExercisePriceAbstract_D5C4954A675DBB578B3CD220EA965AF0" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice_15AF147C4105D56ED2F8D220EA98AFE7" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsWeightedAverageRemainingContractualTermAbstract" xlink:label="loc_nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsWeightedAverageRemainingContractualTermAbstract_5A9153ED2DD3BEFAC4D0D220EA9842CA" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4BD208281927B81DD99BD220EA8D13C2" xlink:to="loc_nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsWeightedAverageRemainingContractualTermAbstract_5A9153ED2DD3BEFAC4D0D220EA9842CA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2_459B99BEC3D9043BEDB4D220EA9880D6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsWeightedAverageRemainingContractualTermAbstract_5A9153ED2DD3BEFAC4D0D220EA9842CA" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2_459B99BEC3D9043BEDB4D220EA9880D6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1_708FEDAAA48B792E212CD220EA987C2F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsWeightedAverageRemainingContractualTermAbstract_5A9153ED2DD3BEFAC4D0D220EA9842CA" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1_708FEDAAA48B792E212CD220EA987C2F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1_2515B232D5421CB5BBD4D220EA985933" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsWeightedAverageRemainingContractualTermAbstract_5A9153ED2DD3BEFAC4D0D220EA9842CA" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1_2515B232D5421CB5BBD4D220EA985933" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAggregateIntrinsicValueAbstract" xlink:label="loc_nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAggregateIntrinsicValueAbstract_08874B250A51FD53C8AED220EA981932" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4BD208281927B81DD99BD220EA8D13C2" xlink:to="loc_nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAggregateIntrinsicValueAbstract_08874B250A51FD53C8AED220EA981932" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue_A0249D996274E4332130D220EA99C370" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAggregateIntrinsicValueAbstract_08874B250A51FD53C8AED220EA981932" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue_A0249D996274E4332130D220EA99C370" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue_8943FB9E9F5822D59452D220EA997F65" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAggregateIntrinsicValueAbstract_08874B250A51FD53C8AED220EA981932" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue_8943FB9E9F5822D59452D220EA997F65" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1_FA2B06C209A512972D77D220EA9AF8DB" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAggregateIntrinsicValueAbstract_08874B250A51FD53C8AED220EA981932" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1_FA2B06C209A512972D77D220EA9AF8DB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationAggregateDisclosuresAbstract" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAggregateDisclosuresAbstract_D96F8528135EF3B0F7BBD220EA9AE1D6" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4BD208281927B81DD99BD220EA8D13C2" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationAggregateDisclosuresAbstract_D96F8528135EF3B0F7BBD220EA9AE1D6" 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_698FCA82001884B5B39CD220EA9A085E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAggregateDisclosuresAbstract_D96F8528135EF3B0F7BBD220EA9AE1D6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_698FCA82001884B5B39CD220EA9A085E" 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_496204C14DCC274B0303D220EA9ABDB5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAggregateDisclosuresAbstract_D96F8528135EF3B0F7BBD220EA9AE1D6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsShareBasedLiabilitiesPaid_496204C14DCC274B0303D220EA9ABDB5" 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_E4F19CF6C2508BDF16C8D220EA9B2C08" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAggregateDisclosuresAbstract_D96F8528135EF3B0F7BBD220EA9AE1D6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_E4F19CF6C2508BDF16C8D220EA9B2C08" 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_EE03452A37AAA18B4DBFD220EA9B8195" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAggregateDisclosuresAbstract_D96F8528135EF3B0F7BBD220EA9AE1D6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue_EE03452A37AAA18B4DBFD220EA9B8195" 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_52731166E518F69891FDD220EA9BE263" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAggregateDisclosuresAbstract_D96F8528135EF3B0F7BBD220EA9AE1D6" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_52731166E518F69891FDD220EA9BE263" 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_B88FA4AAC858BE241AAAD220EA9B765C" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAggregateDisclosuresAbstract_D96F8528135EF3B0F7BBD220EA9AE1D6" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_B88FA4AAC858BE241AAAD220EA9B765C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod_AA61E8720696E17D7F22D220EA9CC247" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAggregateDisclosuresAbstract_D96F8528135EF3B0F7BBD220EA9AE1D6" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod_AA61E8720696E17D7F22D220EA9CC247" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendPayments" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendPayments_6EF9AF1A1D8209C61437D220EA9C880A" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAggregateDisclosuresAbstract_D96F8528135EF3B0F7BBD220EA9AE1D6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendPayments_6EF9AF1A1D8209C61437D220EA9C880A" 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_6007ED8A7CFD31B0C6FCD220EA9C8117" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAggregateDisclosuresAbstract_D96F8528135EF3B0F7BBD220EA9AE1D6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_6007ED8A7CFD31B0C6FCD220EA9C8117" 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_BE38EEA38926D79D0249D220EA9C2DC1" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAggregateDisclosuresAbstract_D96F8528135EF3B0F7BBD220EA9AE1D6" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedInPeriodFairValue1_BE38EEA38926D79D0249D220EA9C2DC1" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_PerformanceSharesSettledinCash" xlink:label="loc_nx_PerformanceSharesSettledinCash_74AC75CE2EF9D36C441ED220EA9D09AE" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAggregateDisclosuresAbstract_D96F8528135EF3B0F7BBD220EA9AE1D6" xlink:to="loc_nx_PerformanceSharesSettledinCash_74AC75CE2EF9D36C441ED220EA9D09AE" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_PerformanceSharesSettledinStock" xlink:label="loc_nx_PerformanceSharesSettledinStock_0193F1F24BA4F2CEA646D220EA9DCBD8" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAggregateDisclosuresAbstract_D96F8528135EF3B0F7BBD220EA9AE1D6" xlink:to="loc_nx_PerformanceSharesSettledinStock_0193F1F24BA4F2CEA646D220EA9DCBD8" 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_234667D3B76F1B30F76CD220EA9DE1FB" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAggregateDisclosuresAbstract_D96F8528135EF3B0F7BBD220EA9AE1D6" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage_234667D3B76F1B30F76CD220EA9DE1FB" 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_81AE5D3208178B50CDFED220EA9DB789" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAggregateDisclosuresAbstract_D96F8528135EF3B0F7BBD220EA9AE1D6" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_81AE5D3208178B50CDFED220EA9DB789" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_Incometaxeffect" xlink:label="loc_nx_Incometaxeffect_A1841DF7AA7E85115E5DD220EA9E5405" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAggregateDisclosuresAbstract_D96F8528135EF3B0F7BBD220EA9AE1D6" xlink:to="loc_nx_Incometaxeffect_A1841DF7AA7E85115E5DD220EA9E5405" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax_64EDE3D603A7DBA35ACED220EA9EA2E0" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAggregateDisclosuresAbstract_D96F8528135EF3B0F7BBD220EA9AE1D6" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax_64EDE3D603A7DBA35ACED220EA9EA2E0" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_PerformanceSharesExpectedtoVest" xlink:label="loc_nx_PerformanceSharesExpectedtoVest_F2364874B800D03DB61CD220EA9EBF9D" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4BD208281927B81DD99BD220EA8D13C2" xlink:to="loc_nx_PerformanceSharesExpectedtoVest_F2364874B800D03DB61CD220EA9EBF9D" 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_280E9BB29AC8C3702AC8D220EA9F4F47" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4BD208281927B81DD99BD220EA8D13C2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted_280E9BB29AC8C3702AC8D220EA9F4F47" 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_BADB9B36141941BE0503D220EA9F2B4C" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4BD208281927B81DD99BD220EA8D13C2" xlink:to="loc_us-gaap_EarningsPerShareBasicAndDiluted_BADB9B36141941BE0503D220EA9F2B4C" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_RelativeTotalShareReturn" xlink:label="loc_nx_RelativeTotalShareReturn_388AF2A5CADA7C0F6EE2D220EA9F8B6F" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4BD208281927B81DD99BD220EA8D13C2" xlink:to="loc_nx_RelativeTotalShareReturn_388AF2A5CADA7C0F6EE2D220EA9F8B6F" 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_5226AFE721003FDF5AC9D220EAA08D5B" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4BD208281927B81DD99BD220EA8D13C2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsForfeitures_5226AFE721003FDF5AC9D220EAA08D5B" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_A2015PerformanceSharesVested" xlink:label="loc_nx_A2015PerformanceSharesVested_C0542884BE2072B6C8EDD220EAA00C85" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4BD208281927B81DD99BD220EA8D13C2" xlink:to="loc_nx_A2015PerformanceSharesVested_C0542884BE2072B6C8EDD220EAA00C85" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_A2016PerformanceSharesVested" xlink:label="loc_nx_A2016PerformanceSharesVested_510B50C6D606D436D9F0D220EAA06550" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4BD208281927B81DD99BD220EA8D13C2" xlink:to="loc_nx_A2016PerformanceSharesVested_510B50C6D606D436D9F0D220EAA06550" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_PerformanceSharesCashSettlements" xlink:label="loc_nx_PerformanceSharesCashSettlements_D5B3C43C7F582661F571D220EAA123F6" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4BD208281927B81DD99BD220EA8D13C2" xlink:to="loc_nx_PerformanceSharesCashSettlements_D5B3C43C7F582661F571D220EAA123F6" 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_F45A9CDF26CFC1DEB644D220EAA1F76C" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4BD208281927B81DD99BD220EA8D13C2" xlink:to="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_F45A9CDF26CFC1DEB644D220EAA1F76C" 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/StockholdersEquity" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/StockholdersEquityDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockLineItems" xlink:label="loc_us-gaap_ClassOfStockLineItems_11D74A1F2314E4A72405D2261DB697AD" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfStockByClassTable" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_A8BAAED64713E968B511D2261DB4FB9A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_11D74A1F2314E4A72405D2261DB697AD" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_A8BAAED64713E968B511D2261DB4FB9A" 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_C068AA34EDD2EF8E74C1D2261DB4F924" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_A8BAAED64713E968B511D2261DB4FB9A" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_C068AA34EDD2EF8E74C1D2261DB4F924" 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_97310F5B8F9959F5AF95D2261DB582ED_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_C068AA34EDD2EF8E74C1D2261DB4F924" xlink:to="loc_us-gaap_EquityComponentDomain_97310F5B8F9959F5AF95D2261DB582ED_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_97310F5B8F9959F5AF95D2261DB582ED" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_C068AA34EDD2EF8E74C1D2261DB4F924" xlink:to="loc_us-gaap_EquityComponentDomain_97310F5B8F9959F5AF95D2261DB582ED" 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_2F59A23E4EA6EC0027A7D2261DB5CF1D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_97310F5B8F9959F5AF95D2261DB582ED" xlink:to="loc_us-gaap_RetainedEarningsMember_2F59A23E4EA6EC0027A7D2261DB5CF1D" 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_8D7FE7F0D63D45F7D9CDD2261DB5A668" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_A8BAAED64713E968B511D2261DB4FB9A" xlink:to="loc_us-gaap_AwardTypeAxis_8D7FE7F0D63D45F7D9CDD2261DB5A668" 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_E640AD22D11616B69B9ED2261DB519E3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_8D7FE7F0D63D45F7D9CDD2261DB5A668" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E640AD22D11616B69B9ED2261DB519E3_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_E640AD22D11616B69B9ED2261DB519E3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_8D7FE7F0D63D45F7D9CDD2261DB5A668" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E640AD22D11616B69B9ED2261DB519E3" 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_8482B1506D09602C8274D2261DB68EAE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E640AD22D11616B69B9ED2261DB519E3" xlink:to="loc_us-gaap_RestrictedStockMember_8482B1506D09602C8274D2261DB68EAE" 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_2F34395080FDE42ED5D9D2261DB6AAFE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E640AD22D11616B69B9ED2261DB519E3" xlink:to="loc_us-gaap_EmployeeStockOptionMember_2F34395080FDE42ED5D9D2261DB6AAFE" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_SharebasedCompensationArrangementbySharebasedPaymentAwardNumberofSharesRollForward" xlink:label="loc_nx_SharebasedCompensationArrangementbySharebasedPaymentAwardNumberofSharesRollForward_1144A1501D31430C5E23D2261DB60CAB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_11D74A1F2314E4A72405D2261DB697AD" xlink:to="loc_nx_SharebasedCompensationArrangementbySharebasedPaymentAwardNumberofSharesRollForward_1144A1501D31430C5E23D2261DB60CAB" 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_B6F6B2DAAD6890E57E21D2261DB6F4EA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_SharebasedCompensationArrangementbySharebasedPaymentAwardNumberofSharesRollForward_1144A1501D31430C5E23D2261DB60CAB" xlink:to="loc_us-gaap_TreasuryStockShares_B6F6B2DAAD6890E57E21D2261DB6F4EA" 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_42DD4AE184B066E57D04D2261DB70B89" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_SharebasedCompensationArrangementbySharebasedPaymentAwardNumberofSharesRollForward_1144A1501D31430C5E23D2261DB60CAB" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_42DD4AE184B066E57D04D2261DB70B89" 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_F7B3C46C5D121B84F522D2261DB74ACF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_SharebasedCompensationArrangementbySharebasedPaymentAwardNumberofSharesRollForward_1144A1501D31430C5E23D2261DB60CAB" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_F7B3C46C5D121B84F522D2261DB74ACF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockSharesAcquired" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_B1F8F38454978B09913BD2261DB7D670" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_SharebasedCompensationArrangementbySharebasedPaymentAwardNumberofSharesRollForward_1144A1501D31430C5E23D2261DB60CAB" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_B1F8F38454978B09913BD2261DB7D670" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockSharesAuthorized" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_45DCB2C24B686AF68D9BD2261DB8EFD0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_11D74A1F2314E4A72405D2261DB697AD" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_45DCB2C24B686AF68D9BD2261DB8EFD0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_BA7AAC9BB253B273F3E8D2261DB826D0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_11D74A1F2314E4A72405D2261DB697AD" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_BA7AAC9BB253B273F3E8D2261DB826D0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockSharesAuthorized" xlink:label="loc_us-gaap_PreferredStockSharesAuthorized_2BCC2CDF668D1044D268D2261DB8AC3D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_11D74A1F2314E4A72405D2261DB697AD" xlink:to="loc_us-gaap_PreferredStockSharesAuthorized_2BCC2CDF668D1044D268D2261DB8AC3D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockSharesIssued" xlink:label="loc_us-gaap_CommonStockSharesIssued_6B19B599AEE165AC087CD2261DB857DA" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_11D74A1F2314E4A72405D2261DB697AD" xlink:to="loc_us-gaap_CommonStockSharesIssued_6B19B599AEE165AC087CD2261DB857DA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockSharesOutstanding" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_7C82332C2215935D2646D2261DB8E384" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_11D74A1F2314E4A72405D2261DB697AD" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_7C82332C2215935D2646D2261DB8E384" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodValue" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodValue_786269FFF17EA60864E4D2261DB936B6" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_11D74A1F2314E4A72405D2261DB697AD" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodValue_786269FFF17EA60864E4D2261DB936B6" xlink:type="arc" />
    <link:loc xlink:href="nx-20191031.xsd#nx_Deficiencyofstockoptionproceedsrecordedtoretainedearnings" xlink:label="loc_nx_Deficiencyofstockoptionproceedsrecordedtoretainedearnings_B9BA594DE09DBF3DFC90D2261DB9F38D" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_11D74A1F2314E4A72405D2261DB697AD" xlink:to="loc_nx_Deficiencyofstockoptionproceedsrecordedtoretainedearnings_B9BA594DE09DBF3DFC90D2261DB9F38D" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/StockholdersEquityTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/UnauditedQuarterlyData" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/UnauditedQuarterlyDataDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/UnauditedQuarterlyDataTables" xlink:type="extended" />
  <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>
