How can I use highDPIScaling in AppStudio?

307
2
Jump to solution
12-19-2018 07:38 AM
MattStayner
Occasional Contributor II

Hi AppStudio Team!

Lucas Danzinger was super helpful yesterday and answer my question over on ArcGIS Runtime SDK for Qt. He helped me find an example in the ArcGIS Runtime Samples and run it in AppStudio. In the process, we discovered this example requires ArcGISExtras to set the scaleFactor. Lucas had me remove both the ArcGISExtras import and the scaleFactor variable that was set using System.displayScaleFactor. He said that wasn't needed anymore.

At the end of our conversation, he mentioned Qt introduced automatic scaling a few releases back. To use it, you need to set a value in C++. He wasn't sure how that would work in AppStudio, but suggested that I ask the question here. So here I am.

Can you please help me understand how to use highDPIScaling in AppStudio?

Thanks!

Matt

0 Kudos
1 Solution

Accepted Solutions
ErwinSoekianto
Esri Regular Contributor

Matt, 

You can do that by changing a property in appinfo.json called "enableHighDpi" to true.

Thank you,

Erwin

View solution in original post

0 Kudos
2 Replies
ErwinSoekianto
Esri Regular Contributor

Matt, 

You can do that by changing a property in appinfo.json called "enableHighDpi" to true.

Thank you,

Erwin

0 Kudos
MattStayner
Occasional Contributor II

Perfect. Thanks! And thanks for pointing out the screenshot feature in the other thread. Good to know. You guys are great!