texstudio-org / texstudio

TeXstudio is a fully featured LaTeX editor. Our goal is to make writing LaTeX documents as easy and comfortable as possible.
http://www.texstudio.org/
GNU General Public License v3.0
2.85k stars 346 forks source link

TeXstudio not resized properly on Windows 10 switching between screens with different scaling factors #781

Open 7Z0t99 opened 5 years ago

7Z0t99 commented 5 years ago

Environment

I have got a notebook with an internal and an external screen. In the Windows settings, the internal screen is set to 150% scaling and the external to 100% scaling. When I switch between the screens (e.g. with Win+P), parts of the TeXstudio window are resized properly (the editor and the pdf reader), but the other parts are not. This includes the menu bar (with File, Edit, etc)., the tree with the open files and their structure, the LaTeX log, the editor's tabs with the file names, etc.

vivkaz commented 4 years ago

I have same issue with TeXstudio 2.12.18 (git 2.12.18) Using Qt Version 5.12.1, compiled with Qt 5.12.1 R

Menu bar items are useless/unreadable on both screens: native and external 2019-12-28_0126

I tried with 'Options -> Advanced Editors -> Workarounds -> Disable cache of rendered lines', but there is no any change. Options -> GUI Scaling settings are working for the other items, but menu bar titles still unreadable.

vivkaz commented 4 years ago

actually all text items in GUI are too small 2019-12-29_1154

I also tried with qt.conf in texstudio directory: [Platforms] WindowsArguments = dpiawareness=1

and it didn't help

external display resolution is: 1980x1080 , scale layout 100% native resolution display is: 2560x1440, scale layout 200%

text items apears on both display too small when install txstudio on a PC with a single display 1980x1080, then text items appear normal size and readable/usable

vivkaz commented 4 years ago

seems this helped in my case viber_image_2019-12-29_14-21-51

by default when installed it was set to 4 for font size on another PC with only one monitor it is et to 8 by default

I changed font size to 8 and now it is OK on both external and native monitor

arjan64 commented 3 years ago

I run TexSStudio 3.0.1 on a Windows 10 box and suffer from this same problem. My laptop has a 4K screen (3840 x 2160) and set to 250%, my second screen is landscape 1920 x 1080 and set to 100% and the third screen is portrait 1080 x 1920 and set to 100%. When TexStudio starts on the native screen, then after displacement of the TexStudio window all menu pictograms on the other screens are way too large and vice versa. I would hope that, like other programs, TexStudio automagically adapts to the new screen, conserving all relative sizes of the elements on its window, but it does not.

adinriv commented 2 years ago

I see a similar problem on TeXstudio 4.3.1 (git n/a) Using Qt Version 5.15.3, compiled with Qt 5.15.3 R on an Ubuntu 22.04.1 LTS.

The main issue appears when unplugging the laptop from the monitors, and then getting the application with the wrong scaling. Notice that moving the application between monitors while plugged does rescale the GUI.