Setting geometry to match embedded device in Qt Designer
-
My Embedded device is a 7 inch display at 800 by 480 and my computer is at a different resolution. How do I change the dimensions of the geometry to match my 7 inch display?
Even when I set my parent Widget to 800 by 480, it does not reflect the dimensions of the device itself. How do I change that in Qt Designer?
-
Hi,
I was able to resolve this using QPaintDevice and setting the Device profile to match the DPI of the device.
@ qDebug()<<"Logical DPI "<<QPaintDevice::logicalDpiX()<<"x"<<QPaintDevice::logicalDpiY();
qDebug()<<"Physical DPI"<<QPaintDevice::physicalDpiX()<<"x"<<QPaintDevice::physicalDpiY();@The device had 72 DPI and I set this in the device profile of Qt Designer (Tools>Options>Designer) .
Required restarting Qt Creator before applying.