屏幕的放大系数100% 125% 150% 200%,对应的dpi值为:96 120 144 192.
Qt获取dpi值得方法为: QScreen *screen = qApp->primaryScreen(); qreal dpiVal = screen->logicalDotsPerInch();
屏幕的放大系数100% 125% 150% 200%,对应的dpi值为:96 120 144 192.
Qt获取dpi值得方法为: QScreen *screen = qApp->primaryScreen(); qreal dpiVal = screen->logicalDotsPerInch();