-
-
Notifications
You must be signed in to change notification settings - Fork 31
QGIS not running in HiDPI by default on Retina display #5
Comments
|
Hi @nextstopsun, thanks for bringing this up. You can try the following:
Looks like the Note: I don't see any major changes here when I do that (this is a good thing). Also, the low resolution icon is due to a missing high-res one for Mac, not due to incompatible |
|
If you change |
|
@dakcarto Thanks. I'll try that. I'm mostly interested in getting map canvas display in HiDPI. |
Separate issue, I think, possibly related to packaging and whether they are SVG or PNG. Haven't looked into it yet. Also here for me, the Options menu is replaced by the one from Processing. I'll work on fixing that upstream ASAP. |
|
According to window elements, qgis started in HiDPI mode, however map canvas seems to be in low res still. @dakcarto Are you getting this also? |
Sorry, don't have any more time right now to test. It may be that something in code has to be changed to fully enable HiDPI. |
|
Can you try to insert the following code in |
|
If looking to edit QGIS source during a build of
This is because any changes to Alternatively, @nextstopsun, you could use the dependencies to do your own build. |
|
@dakcarto I have all the deps installed, I think I'm going to setup QT Creator build. On a second thought, what if I just clone master and edit the formula to build from a local repo? |
@nextstopsun that should work, though I recommend adding a Qt Creator setup is better and will be added soon to the tutorial. |
|
If anyone can test this patch, that would be much appreciated. |
|
@m-kuhn No changes for me: UI chrome shows up in high res when |
|
@brncsk any chance you could find the value reported by |
|
will try later today
…On Dec 8, 2016 10:22, "Matthias Kuhn" ***@***.***> wrote:
@brncsk <https://github.com/brncsk> any chance you could find the value
reported by logicalDpiX() - either with a debugger or temporarily add
qWarning() << "Logical DPI X " << logicalDpiX();
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABJjvFJllXWteaymMjmIwDMllNesJCurks5rF8xygaJpZM4LGuva>
.
|
|
I also tried multiplying that by |
Correct, that's exactly what needs to be done in the rendering engine - but each pixel of the screen should be used (I guess now there are 4 equal pixels sitting next to each other on your map). There's an issue in Qt with QGraphicsView and HiDpi: https://bugreports.qt.io/browse/QTBUG-26795 but it looks like caching is not explicitly enabled and defaults to disabled and I don't think we use the GL version, so this shouldn't affect us. |
|
Hi. Can someone retest the rendering issue with latest Fixed with Qt 5.8.0: SVG menu icons now show properly (sweet!). Also, I have updated the dock and app switcher icon to 1024x1024. |
|
It does not seem to fix the rendering issue, output is still pixellated. The 1024x1024 icon is a nice touch, though! |
|
Hi. I am closing this as it is an issue to be discussed on the main QGIS issue tracker: I believe I have done what can be via the Homebrew formula and something more needs addressed in the core codebase. |
|
This is the only current issue of similar topic I could find: |
|
I also created a saved query on the tracker for "Subjects with dpi": |






A good reason to try out qgis3-dev is to get HiDPI support on OS X. I guess that wasn't possible for QT4-based versions, but ok for Qt5.
Could be great to have QGIS built with HiDPI enabled by default on retina displays.
Or maybe this should it be a configuration checkbox.
Meanwhile, how do I enable it manually?
The text was updated successfully, but these errors were encountered: