Skip to content
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

QPen - add RenderHints to StringInRect #2019

Closed

Conversation

gusano
Copy link
Member

@gusano gusano commented May 2, 2016

Re #1810

This is a shot in the dark as I have no osx nor retina display to test, but worth a try.

@crucialfelix
Copy link
Member

nope, its still blocky

still-blocky

this is what it looks like screenshotted off my big non-retina monitor:
non-retina-monitor

@timblechmann
Copy link
Contributor

maybe check Qt::AA_UseHighDpiPixmaps (compare the QPainter part of https://blog.qt.io/blog/2013/04/25/retina-display-support-for-mac-os-ios-and-x11/)

@crucialfelix crucialfelix added comp: Qt GUI sclang Qt components -- for IDE tickets, use "env: SCIDE" instead os: macOS labels May 5, 2016
@crucialfelix crucialfelix added this to the 3.8 milestone May 5, 2016
@crucialfelix
Copy link
Member

crucialfelix commented May 5, 2016

I thought those are for icons and images.

but it does say further down "Font sizes can be kept as-is, and produce similarly-sized (but crisp) text on high-dpi displays. Font pixel sizes are device-independent pixel sizes. You never get tiny text on high-dpi displays."

but this is drawing text with QPainter, not what the static text is (which already worked fine)

I tried adding:

Info.plist

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

interface.cpp

    qApp->setAttribute(Qt::AA_UseHighDpiPixmaps);

but it didn't change anything. it is QcCollider that is the qApp, right ?

I'm pretty sure that switch is just for the icons because they could display badly. everything else is automatic scaling.

@gusano gusano deleted the topic/userview-aliasing-retina branch December 24, 2016 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp: Qt GUI sclang Qt components -- for IDE tickets, use "env: SCIDE" instead os: macOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants