I'km working in Qt, i need help to get the physical size of the screen (monitor),
In Qt one can get a QDesktopWidget from QApplication, I mean:
QDesktopWidget *mydesk = QApplication::desktop();
The QDesktopwidget has some methods to get the resolution in pixels and some to get the the size in milimethers:
mydesk-> widthMM(); mydesk->heightMM();
However, this does not correspond to the physical size, when I measure my screen with a ruler, there is a considerable difference.
Also one can get the DPI measurement and calculate the size of the screen:
mydesk->physicalDpiX(); mydesk->physicalDpiY();
double Winches = (double)mydesk.width() / (double)mydesk.physicalDpiX();
double Hinches = (double)mydesk.Height() / (double)mydesk.physicalDpiY();
where mydesk.width() and mydesk.height() give the siz