klayout icon indicating copy to clipboard operation
klayout copied to clipboard

2.5d View on Windows has Wrong Viewport

Open ejprinz opened this issue 2 years ago • 5 comments

I have used the new 2.5d view on both versions 0.28.3 and 0.28.4. On Ubuntu Linux LTS 22.04 it works as expected, i.e., the entire drawing area is used. But on Windows only the lower left quadrant of the viewing area is used, not the entire window. 2023_0203_1928_20_nxa11113 This seems to be a Windows-specific issue. The resolution of this monitor is 1920x1080 but I see the same proportions on a QHD 2560 x 1440 monitor. Please let me know if you need more info.

ejprinz avatar Feb 04 '23 01:02 ejprinz

hmmm ... I could not see this problem on different Windows computers. Neither on a laptop screen (HD resolution), nor on a different computer connected to a 4k display.

But I need to say I don't have fancy graphics hardware - only entry level.

KLayout uses the OpenGL integration from Qt. Maybe there is either an issue with OpenGL or with Qt.

Matthias

klayoutmatthias avatar Feb 05 '23 09:02 klayoutmatthias

Good point. The laptop in question has an Intel Core 5 chip with built-in graphics. Let me google what to do about this.

On Sun, Feb 5, 2023 at 3:17 AM Matthias Köfferlein @.***> wrote:

hmmm ... I could not see this problem on different Windows computers. Neither on a laptop screen (HD resolution), nor on a different computer connected to a 4k display.

But I need to say I don't have fancy graphics hardware - only entry level.

KLayout uses the OpenGL integration from Qt. Maybe there is either an issue with OpenGL or with Qt.

Matthias

— Reply to this email directly, view it on GitHub https://github.com/KLayout/klayout/issues/1274#issuecomment-1417179494, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJPNPJRJYWIH7XWPTCSLC3WV5V2XANCNFSM6AAAAAAUQ3TRFA . You are receiving this because you authored the thread.Message ID: @.***>

ejprinz avatar Feb 05 '23 14:02 ejprinz

I identified the root cause. To adjust the size of the fonts, I started KLayout with the environment variable $QT_SCALE_FACTOR of 0.9 (in Windows). If I delete this environment variable the viewport is OK.

ejprinz avatar Feb 06 '23 00:02 ejprinz

Hi Ewin,

thanks for letting me know. Either that screws up the Qt pixel arithmetics, or there is something wrong on my side.

I'll check that.

Best regards,

Matthias

klayoutmatthias avatar Feb 06 '23 21:02 klayoutmatthias

Hi Matthias, I had set the QT_SCALE_FACTOR to 0.9 so for some reason the viewport was cut down by half so it doesn't seem to be simply related to the value of the scale factor...

On Mon, Feb 6, 2023 at 3:04 PM Matthias Köfferlein @.***> wrote:

Hi Ewin,

thanks for letting me know. Either that screws up the Qt pixel arithmetics, or there is something wrong on my side.

I'll check that.

Best regards,

Matthias

— Reply to this email directly, view it on GitHub https://github.com/KLayout/klayout/issues/1274#issuecomment-1419753434, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJPNPK7G7MCDTSBXKDTC2LWWFRN7ANCNFSM6AAAAAAUQ3TRFA . You are receiving this because you authored the thread.Message ID: @.***>

ejprinz avatar Feb 06 '23 22:02 ejprinz