Unsolved Android Screen Scalability (small companents)
-
Hi friends,
I am new at Qt Creature C++.I have a problem for a few days in company, my companents are very small in my phone.I have to fix it to go forward.You guys can give me some simpe codes or good information ,but some codes is going to help a lot. -
In main.cpp, you must set the following attribute before
Q(Gui)Application
is constructed.QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
Or you can set the
QT_AUTO_SCREEN_SCALE_FACTOR
environment variable to 1. -
I did but this time ,icons seems very large
-
resolution >> 1080x1920 443 dpi(casper m2 phone) ,but it is ok in other device(Tablet) ,is it normal?
-
If so, try adding this attribute(
Qt::AA_UseHighDpiPixmaps
). -
I have tried , but no changed,this is no solution.I dont know what I will do ,is it a bug?I sent an e-mail Qt website.