Wed, 25 May 2022 20:36:34 +0300
Fix pick() picking from weird places on the screen with high DPI scaling
glReadPixels reads data from the frame buffer, which contains data after
high DPI scaling, so any reads to that need to take this scaling into account
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>Document</class> <widget class="QWidget" name="Document"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>957</width> <height>540</height> </rect> </property> <property name="windowTitle"> <string>Form</string> </property> <layout class="QHBoxLayout" name="horizontalLayout" stretch="0,1"> <item> <widget class="QWidget" name="toolsBarContainer" native="true"/> </item> <item> <widget class="QSplitter" name="splitter_2"> <property name="orientation"> <enum>Qt::Vertical</enum> </property> <widget class="QSplitter" name="viewportListSplitter"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <widget class="QFrame" name="viewportFrame"> <property name="frameShape"> <enum>QFrame::StyledPanel</enum> </property> <property name="frameShadow"> <enum>QFrame::Raised</enum> </property> </widget> <widget class="QListView" name="listView"> <property name="alternatingRowColors"> <bool>true</bool> </property> <property name="selectionMode"> <enum>QAbstractItemView::ExtendedSelection</enum> </property> <property name="selectionBehavior"> <enum>QAbstractItemView::SelectRows</enum> </property> </widget> </widget> <widget class="QScrollArea" name="scrollArea"> <property name="widgetResizable"> <bool>true</bool> </property> <widget class="QWidget" name="scrollAreaWidgetContents"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>921</width> <height>73</height> </rect> </property> <layout class="QVBoxLayout" name="verticalLayout"> <item> <widget class="QStackedWidget" name="toolWidgetStack"> <property name="frameShape"> <enum>QFrame::StyledPanel</enum> </property> <property name="frameShadow"> <enum>QFrame::Raised</enum> </property> </widget> </item> </layout> </widget> </widget> </widget> </item> </layout> </widget> <resources/> <connections/> </ui>