psieg / Lightpack

Lightpack and Prismatik open repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adjusting for Windows Scaling broken with Qt6

psieg opened this issue · comments

I recently switched the master branch to build using Qt6 and it seems Qt6 handles something about windows scaling differently from how Qt5 did. Now capturing on displays with scaling is off, i.e. it's not capturing where the grab widgets are.

https://doc.qt.io/qt-6/highdpi.html

I also noticed that when configuring the layout at one scale and then switching scale, the grab widgets move, which didn't happen with Qt5.

@zomfg you are on mac, right? I merged Qt6 on master, could you please test whether mac needs the same coordinate adjustments here:

#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) && defined(Q_OS_WIN))