QCoreApplication Class The QCoreApplication class provides an event loop for Qt applications without UI void QCoreApplication::setAttribute(Qt::ApplicationAttribute attribute, bool on = true) Sets the attribute attribute if on is true; otherwise clears the attribute. Note: Some application attributes must be set before creating a QCoreApplication instance. Refer to the Qt::ApplicationAttribute d..