The present paper measures quality of life through a set of dimensions included in the following partial indicators of objective well-being: demography, economic endowment, academic training, employment, health, cultural goods, environment, housing habitability, security and family. Additionally, and independently, subjective well-being is studied to measure the degree of happiness of the population. As a result, a quality of life indicator is obtained that combines both objective and subjective indicators. The methodology used corresponds to that provided by Pena Trapero through the distance measure DP2, which has been widely used in many empirical studies on well-being and quality of life. Among the results obtained, it is worth noting that happiness diminishes as per capita income grows, and that prosperity, understood as social welfare, can be achieved without relying exclusively on material growth. Thus, the Spanish development model must be revised since the material objectives and economic growth do not guarantee the happiness of the population.