-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dp() problems on Android #489
Comments
I tracked down bug. I changed this line https://github.com/papyros/qml-material/blob/develop/src/core/units.cpp#L78 to
If I got it right, dpi() / 160 -- is a calculation of multiplier, thus there is no need to multiply dp by multiplier. This worked for me. Is this appropriate solution? |
I have the similar problem, when I run the demo with |
Qt >= 5.6 has built-in proper high dpi support. QML Material is also no longer being developed. I'd recommend checking out the new QtQuick Controls 2 with Material Style and Fluid. |
I tried to launch app on my Xiaomi Mi4c and it looks like this:
but when i launch it for desktop target, it looks like this:
It seems that dp function works wrong for me. Is it a bug? If so, do you have any suggestions on how to fix this bug?
The text was updated successfully, but these errors were encountered: