Pregnancy and childbirth have a crucial impact on a woman’s quality of life. In Slovenia, antenatal classes are the main educational tool used to prepare expectant mothers for their new role. The aim of our study was to assess the relationship between the duration of antenatal classes and the mothers’ quality of life after childbirth. A self-administered, previously validated and tested questionnaire regarding the quality of life after childbirth was completed by Slovenian women. Based on an online survey, data were collected for two groups of mothers. The first group (n= 1091) gave birth before the COVID-19 pandemic, and the second group (n= 1163) gave birth during the pandemic. Group differences were analyzed using the Mann–Whitney U test. Linear regression and correlation coefficients were calculated for the association between quality of life and the duration of antenatal classes. Our study showed a significant decrease in the duration of antenatal classes and a decrease in quality of life after birth during the COVID-19 pandemic. We also showed that more antenatal education was associated with a higher quality of life. Despite the influence of multiple factors during the COVID-19 pandemic, we defined the correlation between the duration of antenatal classes and postpartum quality of life in a sample of Slovenian mothers. The duration of the antenatal classes is an important factor influencing the quality of life after childbirth.