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
High DPI overview #1585
Comments
Works fine for me with the following:
I have dpi set to 192 in Xresources, but other than that, I don't think I've done anything else (hadn't heard of the QT env vars) to tell the system it's on a highdpi screen. |
Works fine. First:
Second:
You only have to set the DPI on the X-Server correctly. Everything BUT not every graphics card will detect the DPI correctly. If it Xorg: -dpi int screen resolution in dots per inch I realize I have a default zoom. Maybe one improvement would be to scale the zoom according to DPI. I guess there is a Qt API to get the current DPI. BUT that is definitely not a general Qt problem. Every other Qt-GUI works correctly without any variables or anything. |
+1 to scaling zoom with dpi. 👍 |
I think that's what setting |
My state with QtWebEngine and master on 2016-08-24:
Therefore:
Also:
|
Update: I've discovered that with |
@nicktelford huh? |
Sorry, I git "comment" before I'd finished adding everything :) |
Using
Using |
So I just enabled This should be equivalent to setting |
Doesn't really work for me... DPI set in
(if I understand correctly, my screen has a 282 DPI resolution, but when I set the dpi to 282, everything was enormous, 200 seems like a good balance) Here's how qute looks natively Here's with QT_SCALE: I think it's a problem with Qutebrowser, because everything else seems to work And here's how chromium looks: http://i.imgur.com/hKFgHul.png For the moment I'm making do with zooming, but any workaround or explanation of what I'm doing wrong would be welcome |
I can't quite seem to find the perfect mix of settings for hiDPI. Here are the things I've tried so far (on QtWebengine):
So each method has its bugs. I'd love any advice about how best to tweak Qutebrowser so that websites and UI elements are all at the right zoom level. This is with v0.9.1, by the way. |
Note this note from the Arch wiki:
I'd imagine the note applies to HiDPI as well. In your case Maybe @nicktelford could also try to change the DPI in his |
You could play with the |
Hey there I'm having an issue where by dropdown boxes stop working when I use attached is some video, qutebrowser1.webm is without scale and qutebrowser2.webm is with source for my awesome demo site here: <html>
<body>
<select name="foo">
<option value="1">one</option>
<option value="2">two</option>
<option value="3">three</option>
<option value="4">four</option>
</select>
</body>
</html>
|
@nicwest probably you're seeing this Qt bug. |
@The-Compiler cheers, I'll update when it's fixed. |
@akz92 is that with qutebrowser v0.10.1 on macOS? |
Exactly @The-Compiler, this is the output of
|
Does setting |
Unfortunately no, everything stayed the same. |
|
I'm using an iMac and v1.0.1 from source. Webpages are normal (I have no complaints).
That changes webpages; therefore, it is not desirable. I used
I'm content... for now. 😎 ✌️ |
@dvs1 honestly, 8pt sounds incredibly small. 14pt seems much more reasonable, though it will depend hugely on how closely the configured resolution of your screen matches the actual resolution (and by "resolution", I'm talking about the DPI, not the "screen dimensions"). It's worth remembering that 1pt = 1/72 of an international inch; or ~= 0.353mm - therefore, 8pt should be around 2.8mm on your screen while 14pt will be around 4.9mm. I don't know how good your eyesight is, but in my experience anything smaller than around half a mm becomes quite small to work with! |
I agree that 8 seems low for a default. Also, your fix for the favicons worked for me. Thanks. 😎 👍 |
Some updates about this:
I think this is as good as it can be right now, so I'm closing this. |
My qutebrowser is sort of in a weird state rn from messing with dpi related environment variables (which I can't get really get anything good out of), is changing the default zoom a viable option? It seems that some web elements might get weird and images might get too zoomed (or too far off) if you change the default zoom value. |
FWIW and even though this is an old issue, here is my experience (just got a high DPI machine).
Eventually, I settled to:
Things look quite ok with that. Only thing is that there is sometimes a short delay for the zoom to kick in after a page is loaded. |
Another little problem with setting |
@prosoitos What about setting something like |
I read #4494 and tried it out. But the resolution became really poor. Almost blurry. Maybe there is something that I should have done beside adding Also, the problem of the distortion was happening in exactly the same fashion as with the The only advantage of Am I missing something on how to get it to work properly? Note: I am on Arch Linux, with Xorg and EXWM. |
EXWM is amazing in that it allows to live in Emacs and have real Emacs keybindings everywhere, etc. But it doesn't provide some of the sophistications that other Windows Manager have. So maybe your Windows Manager does something when you scale up so that you don't loose in resolution?? Or maybe I am a "victim" of the "strange" behaviours with non integers with |
And as for |
Weird, sorry for suggesting something you already tried. I have to say that it took a couple of tries for qutebrowser to pick up the Something I've discovered just now is that I've also set this env variable named FYI, I run Arch with bspwm (which is fairly minimal as well). |
Oh! No worries!! Thank you for trying to help actually!!! 🙂 I did try to reboot, with no effect (and I actually don't think that rebooting is necessary. I think that restarting X is enough. But I did reboot, just to be sure). And I actually also tried to have I will give this a try before giving up on it entirely. Beside the tiny tooltips and some areas of the page bobbing up and down through some weird distortion as I type, the zoom method is not too bad. So if it is the best I can get, that'll still be fine. |
I think that Either way, I am back to blurry screen 😞 So back to the zoom method. |
@prosoitos note that Qt 5.14 saw some HiDPI improvements, and seemingly also some new env variables. |
Ah cool! Thanks for the info @rien333. I will see if I can now get qutebrowser to work without setting a default zoom (which has been a good workaround, but increases loading time and messes up the marks) |
I experimented with, for instance:
But as with prior versions of Qt, while this scales everything perfectly to the right size, things are slightly blurry and it gives me a headache within minutes. I have a similar issue when I adjust the dpi through Xorg settings. So I reverted to the 140% zoom. The method has its drawbacks, but at least the rendering is perfect. |
I'm on Arch; and I connect my laptop to a high-dpi display from time to time. Setting QT_ENABLE_HIGHDPI_SCALING=1 did not help with me. The other fixes in this issue do not work for me; since I change screens sometimes. (I set |
@bbaserdem have you tried under Wayland? |
I run X11 on a 4K display. I set
|
@rcorre That's odd! I don't think much should have changed, judging by Porting to Qt 6 | Qt 6.5. I don't really know much about how high DPI support works though - despite having a 4K screen, I don't use scaling at all (after all, 27" 4k is pretty much the same pixel density than my laptop's built-in screen with 14" FullHD). |
I'm trying to figure out how well qutebrowser works with High DPI displays,
without actually using one myself (yet)😉OS X
Seems to work fine since b065d8e (see #1404)
Windows / Linux
I've told people to set
QT_SCALE_FACTOR
/QT_AUTO_SCREEN_SCALE_FACTOR
/QT_DEVICE_PIXEL_RATIO
(deprecated in Qt 5.6). Maybe I should set theQt::AA_EnableHighDpiScaling
application attribute so that happens automatically?People using qutebrowser on a high DPI screen - do you have one of those set? How well does it work?
Also see #1586.
The text was updated successfully, but these errors were encountered: