Quality is one of those things that is difficult to define. According to the PMBOK glossary (5th edition, p. 556) is "the degree to which a set of inherent characteristics fulfills requirements."
Quality is related to the triple constraints. The triple constraints are time, cost, and scope. A project needs to balance those constraints while still meeting the requirements to a degree that results in a deliverable of a high enough quality to meet the approval criteria.