Qt Controls so small on Android
I'm having problems using Qt Controls such as QScrollBar, QSpinBox, QCheckBox and QTabBar on Qt 5.3.1. The application for Windows is perfect but when I compile it for Android those controls just reduce the size. I'm sure that it's related to the fact of the PPI (pixels per inch) of my Galaxy S4 screen but I don't know how to solve it. I'm using Qt Widgets (no QML) and I tried to use Style Sheets to solve this problem but it isn't a good idea once the size is variable according to the device which my application will be deployed. Has someone a solution?
Re: Qt Controls so small on Android
If you are using QWidgets,,, are you using them through layouts ? or is it static placement of the widgets ?
Re: Qt Controls so small on Android
Quote:
Originally Posted by
aamer4yu
If you are using QWidgets,,, are you using them through layouts ? or is it static placement of the widgets ?
I'm using widgets with layout management. Everything is ok about layout unless the Checkbox, spinbox, scrollbar, tabbar scroll buttons. I wish qt could have a measure unit for dp (independent pixel) instead of px (physical pixel). Sincerely.
Re: Qt Controls so small on Android
You can use logicalDPI, which might on the one hand be a better bet (the physicalDPI result changes in runtime on startup...!), on the other hand, the value of logicalDPI is not correct. I have yet to find out if it is incorrect in a consequential and predictable way among different devices.
Re: Qt Controls so small on Android
How can I use a logicalDPI. Can you give a example?