https://blog.youkuaiyun.com/wsj18808050/article/details/54345537
QGuiApplication app( argc, argv );
QScreen *pScreen = app.primaryScreen();
qDebug() << "primary screen width(cm):" << ( ( p->geometry().width() / pScreen->physicalDotsPerInchX() ) / 0.39370 );
qDebug() << "primary screen height(cm):" << ( ( pScreen->geometry().height() / pScreen->physicalDotsPerInchY() ) / 0.39370 );