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

Orange 3.8 Huge Fonts and graphics on Windows 10 4k hidpi laptop #2832

Closed
hermandr opened this issue Dec 17, 2017 · 14 comments
Closed

Orange 3.8 Huge Fonts and graphics on Windows 10 4k hidpi laptop #2832

hermandr opened this issue Dec 17, 2017 · 14 comments

Comments

@hermandr
Copy link

hermandr commented Dec 17, 2017

Orange version

Orange 3.8

Expected behavior

Normal screen and display of Orange

Actual behavior

The screenshots below covers the entire 4k screen.

screen shot 12-17-17 at 10 34 am 001
screen shot 12-17-17 at 10 17 am
screen shot 12-17-17 at 10 34 am

Steps to reproduce the behavior

Double click on Orange icon to launch Orange 3.8

"C:\Program Files\Orange\pythonw.exe" -m Orange.canvas
image

Additional info (worksheets, data, screenshots, ...)
@Lucky-Loek
Copy link

Do you perhaps have zooming enabled? (right click on Desktop > Display Preferences). 4k usually comes with a 250% zoom default in Windows. I have mine at 200% and Orange seems to work fine.

@hermandr
Copy link
Author

hermandr commented Dec 19, 2017 via email

@ajdapretnar
Copy link
Contributor

My Orange on 4k screen with Win looks ok, but I remember there being some issues on smaller screens. However, usually it was the opposite - the icons were too small.
Perhaps @acopar will know how to handle this?

@acopar
Copy link
Contributor

acopar commented Dec 19, 2017

I recall this issue on older Qt4 versions when combined with touchscreen or hidpi laptop screens. Recent versions of Qt have better support for hidpi:
http://doc.qt.io/qt-5/highdpi.html

Use orange miniconda installer and update to the latest pyqt version (which will also upgrade qt as a dependency):
C:\Program Files\Orange\Scripts\conda.bat install pyqt
or
C:\Program Files\Orange\Scripts\conda.bat update pyqt

@markotoplak
Copy link
Member

@acopar this also happened on a Win 10 miniconda install (so with Qt5) that a guest had in the lab this week. So upgrading Qt would not help.

@hermandr
Copy link
Author

hermandr commented Dec 21, 2017 via email

@ales-erjavec
Copy link
Contributor

Which scaling level do you have set? Qt5 does not handle non integer scale factors well QTBUG-65061, https://bugzilla.redhat.com/show_bug.cgi?id=1381828

Still the discrepancy looks too big.

Do you by any chance have QT_SCALE_FACTOR environment variable set?
You can check this by running

set

from the Command Prompt

Can you please also try running:

set QT_AUTO_SCREEN_SCALE_FACTOR=0
"C:\Program Files\Orange\python.exe" -m Orange.canvas --qt "-platform windows:dpiawareness=0"

(try also with ...dpiawareness=1 and ...dpiawareness=2)

@hermandr
Copy link
Author

hermandr commented Jan 16, 2018 via email

@kernc
Copy link
Contributor

kernc commented Jan 16, 2018

What fixed it?

@ajdapretnar
Copy link
Contributor

@ales-erjavec Thank you so much for working on this and figuring it out! 🌟 This bug has been bothering several users.

@ajdapretnar
Copy link
Contributor

I tried to set the scale factor on Linux Mint, but didn't work. I can try again and if it doesn't work, I can bring my laptop to work and we can check.

@lanzagar
Copy link
Contributor

I think @robertcv has a similar problem on Ubuntu and he does not have a hidpi screen. Maybe @ajdapretnar and @robertcv can show the problem to @ales-erjavec and he might have some idea about what else to try.

BTW, is the current state of this issue fixed for windows with hidpi, and there are just similar problems on linux (even on non hidpi)?

@janezd
Copy link
Contributor

janezd commented Jan 24, 2019

@robertcv, @lanzagar, ping?

@lanzagar
Copy link
Contributor

Well the title of this issue said windows and hidpi. I suggest we close this, and if @ajdapretnar or @robertcv can still reproduce the problem on ubuntu and/or non-hidpi, they should open a new issue and probably ask @ales-erjavec for help in solving it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants