-
Notifications
You must be signed in to change notification settings - Fork 784
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
Support high-DPI screens #111
Comments
+1 for this one, my laptop's monitor is a 196 DPI one, and it can be quite tiring to read the docs at the original size. If you cannot make the application DPI aware, a default zoom setting would be IMHO the best bet |
1+, I have a 4k display on 13.3-inches and for me zeal is unusable. Running Ubuntu 15.04 btw. |
It should be possible to enable high DPI support in Qt starting with version 5.4. There's an article about that in Qt documentation. I don't have a high DPI device, so I have no idea how I could test it. Setting It's also possible to set the minimum font size for the embedded web view in the Zeal settings. |
I can test that for you if you can provide me a compiled test version (Win 8 3200x1800 15.6") |
@sidewinder94 CI builds should be the best option for testing. |
@sidewinder94 Thanks for testing. Did you use I do see a problem with the tab bar. Tab maximum width is fixed in pixels, so this requires a fix. |
As per font size in the web view issue, it should be possible to set text default/minimum size or scaling based on actual DPI. Additional info in QTBUG-29571 and this SO answer. |
@trollixx It worked out of the box. |
My DPI scaling is set to 1.25 and I didn't have problems with Zeal 0.1.1 (was displaying just fine). After I downloaded 0.1.1-82-g8a8544f, it rendered the window in the same way (except for margin-left on the seach list view and see also icons; but fonts where the same) and setting Since it was fine for me before I just assume that this issue never existed for me, but I wanted to mention it anyway. Edit: I would upload images but it doesn't work for some reason. |
I wonder if anyone still experiencing any issues with Zeal on HiDPI screens? Qt should behave quite well nowadays. |
@kjaquier Starting zeal using the QT_DEVICE_PIXEL_RATIO=auto environment variable as described further up this thread addresses this issue |
@robotlovesyou Thanks. I tried it and it works great. |
The change committed requires Qt 5.6+ to work, our CI is currently building with Qt 5.5.1. I am working on fixing that. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
When viewing documentation in zeal, I cannot figure out how to zoom the documentation in. When reading the same documentation in mozilla versus zeal, I notice that zeal is rendering text with the assumption that my display’s resolution is 96DPI.
When mozilla launches, it reads in the system-wide DPI value and automatically scales its UI and all HTML appropriately. (It would be nice if it supported Windows 8.1 per-monitor DPI, but only IE supports that so far; for now I just restrict my use of mozilla to the monitor that happens to match Windows’s calculated system-wide DPI value).
When zeal launches, it calls SetProcessDPIAware(). This function is not to be confused with the newer/better API SetProcessDpiAwareness(); calling
SetProcessDPIAware()
is equivalent to callingSetProcessDpiAwareness(Process_System_DPI_Aware)
. (Ideally, you/qt will eventually support callingSetProcessDpiAwareness(Process_Per_Monitor_DPI_Aware)
.) (I am just assuming your application is calling the said function because its behavior is consistent with callingSetProcessDPIAware()
and I can find that this method is referenced inplatforms/qwindowsdll
.) This means that if the user’s system DPI reflects a very high DPI, such as from a high density monitor (mine is only semi-high density at 120DPI), the users would see text at half-size or smaller and be unable to read it. I mean, if the screen is high density, the user could always use a real-life magnifying glass (and still not be able to see the pixels, isn’t it awesome? :-D) and be able to read the text fine, but this would be quite inconvenient.As a stop-gap measure, adding in C-+ and C-- zoom (copying more functionality from web browsers) and later fixing your code to support Qt’s DPI support (I really hope that Qt and its webkit control support DPI if it’s calling
SetProcessDPIAware()
on your behalf) is really the only way to go. Maybe someday Qt will add support for Windows 8.1 per-monitor/dynamic DPI and, by using Qt’s current DPI APIs, your app will automamagically work with that?The text was updated successfully, but these errors were encountered: