makehumancommunity / makehuman

This is the main repository for the MakeHuman application as such.
http://www.makehumancommunity.org
Other
1.22k stars 250 forks source link

Introduce pre-startup config scan, and some additional stuff for HDPI #108

Closed joepal1976 closed 4 years ago

joepal1976 commented 4 years ago

Here I've introduced an early configuration sweep in order to be able so set the QT_AUTO_SCREEN_SCALE_FACTOR before the Qt application launches.

@dennj can you check if this works for you on your monitor?

@rwbaer can you check that it doesn't cause trouble on your dual monitor setup?

Aranuvir commented 4 years ago

That's probably a quick workaround for some problems, but IMHO not the best solution. Personally I think it would be better to move the settings stuff to a python module which gets imported and run in the early stages of makehuman.py and then being handed over as an parameter to the MHApplication class. But separating out the Qt stuff from the settings functions is a bit cumbersome.

joepal1976 commented 4 years ago

@Aranuvir I hear you, and that makes sense.

I'm going to merge this for now, and we can see to refactoring the code so that config happens before the application start at some point down the line.