collin80 / SavvyCAN

QT based cross platform canbus tool
MIT License
1k stars 278 forks source link

Found solution to QT rendering issue in Linux Mint #241

Open jerkey opened 4 years ago

jerkey commented 4 years ago

I run Linux Mint and SavvyCAN has never rendered properly and required a lot of tweaking of field widths (which are not persistent). Today I found that the following environment variables make it work great!

export QT_SCALE_FACTOR=1 export QT_AUTO_SCREEN_SCALE_FACTOR=0 export QT_SCREEN_SCALE_FACTORS=2

I found them at this link: https://www.reddit.com/r/linuxmint/comments/eca468/qt_apps_hidpi_scaling_in_cinnamon/

I am not sure which of the three fixed the issue, and I don't know if this is more of a Linux Mint issue or a SavvyCAN issue, but I wanted you to know in case there's something you can do so that other people don't have to go through the same process.

I have a 3200x1800 display, which is "HiDPI" and I think that affects things, but anyway the above worked great. Here's a picture of extended CAN frames before (need to scroll sideways to see them!?!?) and then after the above fix: badrender Screenshot from 2020-09-08 14-47-54

KostyaSha commented 4 years ago

HIDPI on osx also produces strange result with width, height, centering...

collin80 commented 4 years ago

It has been a while since I last tested on a HiDPI device. I've got a 4K monitor but I rarely use it. I'll have to work on this some more.