How to check the physical screen size of your display?
-
Hi guys,
I have been using the Screen Qml component, but that one does not offer a way to tell me the physical screen size, only the display size in pixels.
The symbian Screen Component offers the "displayCategory":http://http://doc.qt.digia.com/qtquick-components-symbian-1.1/qml-screen.html, but symbian Components are not available for Qt 5.3, which I am actually using.
How would you address with this problem.
Thankssss
-
You can get it (although a bit unreliably) from QDesktopWidget, like this:
@
int heightMiliMeters = QDesktopWidget::screen()->heightMM();
int widthMiliMeters = QDesktopWidget::screen()->widthMM();
@