// Get screen DPI to manage font sizes on different platforms
QScreen*srn=QGuiApplication::primaryScreen();
if(srn&&srn->logicalDotsPerInch()>50.0){
_dotsPerInch=(double)srn->logicalDotsPerInch();// Font point sizes are based on Mac 72dpi
_dpiFactor=72.0/_dotsPerInch;
}else{
qWarning()<<"System not reporting logical DPI, which is used to compute the appropriate font size. The default being used is 96dpi. If the text within buttons and UI elements are too big or too small, that's the reason.";
// Get screen DPI to manage font sizes on different platforms
QScreen*srn=QGuiApplication::primaryScreen();
if(srn&&srn->logicalDotsPerInch()>50.0){
_dotsPerInch=(double)srn->logicalDotsPerInch();// Font point sizes are based on Mac 72dpi
_dpiFactor=72.0/_dotsPerInch;
}else{
qWarning()<<"System not reporting logical DPI, which is used to compute the appropriate font size. The default being used is 96dpi. If the text within buttons and UI elements are too big or too small, that's the reason.";