简体   繁体   中英

Qt Antialiasing Issue on OSX

I'm trying to build a Qt-based app on OSX (using CMake), but all the widgets (and text) that I'm creating look terrible.

For example, here is a screenshot of the checkbox and magnification text within the System Preferences app:

看起来不错

and here is a sample checkbox and text from my app:

船尾

My Info.plist file contains

<key>NSHighResolutionCapable</key> <string>True</string>

but this doesn't seem to have an effect. I've also tried setting the render hint for fonts, but again, nothing changes. Is there something special that needs to be done to get simple things like checkboxes to render well on OSX when using Qt?

So the Info.plist tweak ended up being the correct fix, but OSX caches the .plist files. Deleting the entire generated bundle (including the .plist) fixed the issue. Hooray for good looking checkboxes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM