QFont font("Arial", 12); font.setStyleStrategy(QFont::PreferAntialias);
QFont font("Arial", 12); font.setStyleStrategy(QFont::NoAntialias);The QFont class and setStyleStrategy member function are part of the Qt library, specifically the QtGui module.