Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.6.3, 6.7.1, 6.7.2
-
-
7f08822c4 (dev), 68608585a (6.8)
Description
Issue:
A QTreeView application does not scale the expand/collaps icon when it runs with multiple monitors that have different scale settings.
That is more clearly observed when the difference between scale settings is large.
Steps to reproduce:
1. Prepare a laptop and an external monitor
2. Set the laptop's built-in monitor as a main monitor, and set its scale to 250% (or a maximum value)
3. Set the external monitor as a sub monitor, and set its scale to 100%
4. Run the attached application.
- If the application appears in the main monitor first, its expand icon will be scaled correctly. That will be kept even you drag the window to the sub monitor.
- If the application appears in the submonitor first, its expand icon will be scaled larger than expected.
The behavior may varies on scale setting.
The deviation becomes clearer if you enlarge the difference between two scale settings.
For example setting the environment variables as follows makes it more noticeable :
qputenv("QT_SCREEN_SCALE_FACTORS", "5;1");
Attachments
For Gerrit Dashboard: QTBUG-126533 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
570670,5 | Windows style: paint treeview indicators with correct dpr | dev | qt/qtbase | Status: MERGED | +2 | 0 |
576490,2 | Windows style: paint treeview indicators with correct dpr | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |