FIX Some Dialogs positioned wrong in HiDPI with scaling #6832

Closed
opened 2026-02-21 18:38:21 -05:00 by deekerman · 2 comments
Owner

Originally created by @allanlaal on GitHub (Feb 3, 2018).

qBittorrent version and Operating System

qBittorrent v4.1.0alpha + Ubuntu Mate 16.04 LTS

If on linux, libtorrent and Qt version

python-libtorrent 1.1.6
Qt: 4.8.7
Desktop environment: MATE Desktop Environment 1.12.1

What is the problem

Some dialogs are not shown where they should be, rather they are on another screen or have a random offset, or are not visible at all. This happens intermittedly, but is guaranteed to happen when I disconnect/reconnect my external monitor

It has happened with:

  • the Download Priority dropdown popout:Torrent Content → Download Priority → Right Click → priority
  • Torrent → Right Click → Category dropdown (often not shown at all)
  • File, Edit, View, Tools, Help menus (usually blank)
  • Torrent → torrent delete dialog (often not shown at all)

What is the expected behavior

dialogs shown correctly

Steps to reproduce

Connect a HiDPI monitor, run the below command to iniate scaling (you might need to adjust your resolutions). Use Qbitorrent, shutdown it, run it, reposition it all the while disconnecting/reconnecting the monitor. at some point it should start acting up

Extra info(if any)

$ xrandr -q
Screen 0: minimum 8 x 8, current 5760 x 1620, maximum 32767 x 32767
eDP1 connected primary 2880x1620+2880+0 (normal left inverted right x axis y axis) 340mm x 190mm
   2880x1620     59.96*+  47.97  
   2048x1536     60.00  
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   2048x1152     60.00  
   1920x1200     59.95  
   1920x1080     60.00    59.93  
   1600x1200     60.00  
   1680x1050     59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1600x900      60.00  
   1280x1024     60.02  
   1440x900      59.89  
   1280x960      60.00  
   1440x810      60.00  
   1368x768      60.00  
   1360x768      59.80    59.96  
   1152x864      60.00  
   1280x720      60.00  
   1024x768      60.00  
   1024x576      60.00  
   960x540       60.00  
   800x600       60.32    56.25  
   864x486       60.00  
   640x480       59.94  
   720x405       60.00  
   640x360       60.00  
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
HDMI1 connected 2880x1620+0+0 (normal left inverted right x axis y axis) 293mm x 165mm
   1920x1080     59.72*+  60.00    59.94  
   1920x1080i    60.00    50.00    59.94  
   1680x1050     59.88  
   1280x1024     60.02  
   1440x900      59.90  
   1280x800      59.91  
   1152x864      59.97  
   1280x720      60.00    50.00    59.94  
   1024x768      60.00  
   800x600       60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       60.00    59.94  
HDMI2 disconnected (normal left inverted right x axis y axis)
VGA1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
eDP-1-2 disconnected (normal left inverted right x axis y axis)
DVI-D-1-1 disconnected (normal left inverted right x axis y axis)

the scaling command I iniate when attaching this external monitor:

xrandr \
--verbose \
--output VIRTUAL1 \
	--off \
--output DP2 \
	--off \
--output DP1 \
	--off \
--output HDMI2 \
	--off \
--output HDMI1 \
	--mode 1920x1080 \
	--scale 1.5x1.5 \
	--pos 0x324 \
	--rotate normal \
--output eDP1 \
	--mode 2880x1620 \
	--pos 2880x324 \
	--rotate normal \
	--primary \
--output VGA1 \
	--off 

Notes:

resizing elements inside qbittorrent seems to fix this

not linked to:
#8126 (using qt5)

not suffering from these qt4 related bugs for some reason too:
#7879
#7766
#7746
#5027
#3617

Originally created by @allanlaal on GitHub (Feb 3, 2018). ### qBittorrent version and Operating System qBittorrent v4.1.0alpha + Ubuntu Mate 16.04 LTS ### If on linux, libtorrent and Qt version python-libtorrent 1.1.6 Qt: 4.8.7 Desktop environment: MATE Desktop Environment 1.12.1 ### What is the problem Some dialogs are not shown where they should be, rather they are on another screen or have a random offset, or are not visible at all. This happens intermittedly, but is guaranteed to happen when I disconnect/reconnect my external monitor It has happened with: * the Download Priority dropdown popout:Torrent Content → Download Priority → Right Click → priority * Torrent → Right Click → Category dropdown (often not shown at all) * File, Edit, View, Tools, Help menus (usually blank) * Torrent → torrent delete dialog (often not shown at all) ### What is the expected behavior dialogs shown correctly ### Steps to reproduce Connect a HiDPI monitor, run the below command to iniate scaling (you might need to adjust your resolutions). Use Qbitorrent, shutdown it, run it, reposition it all the while disconnecting/reconnecting the monitor. at some point it should start acting up ### Extra info(if any) $ xrandr -q Screen 0: minimum 8 x 8, current 5760 x 1620, maximum 32767 x 32767 eDP1 connected primary 2880x1620+2880+0 (normal left inverted right x axis y axis) 340mm x 190mm 2880x1620 59.96*+ 47.97 2048x1536 60.00 1920x1440 60.00 1856x1392 60.01 1792x1344 60.01 2048x1152 60.00 1920x1200 59.95 1920x1080 60.00 59.93 1600x1200 60.00 1680x1050 59.95 59.88 1600x1024 60.17 1400x1050 59.98 1600x900 60.00 1280x1024 60.02 1440x900 59.89 1280x960 60.00 1440x810 60.00 1368x768 60.00 1360x768 59.80 59.96 1152x864 60.00 1280x720 60.00 1024x768 60.00 1024x576 60.00 960x540 60.00 800x600 60.32 56.25 864x486 60.00 640x480 59.94 720x405 60.00 640x360 60.00 DP1 disconnected (normal left inverted right x axis y axis) DP2 disconnected (normal left inverted right x axis y axis) HDMI1 connected 2880x1620+0+0 (normal left inverted right x axis y axis) 293mm x 165mm 1920x1080 59.72*+ 60.00 59.94 1920x1080i 60.00 50.00 59.94 1680x1050 59.88 1280x1024 60.02 1440x900 59.90 1280x800 59.91 1152x864 59.97 1280x720 60.00 50.00 59.94 1024x768 60.00 800x600 60.32 720x576 50.00 720x480 60.00 59.94 640x480 60.00 59.94 HDMI2 disconnected (normal left inverted right x axis y axis) VGA1 disconnected (normal left inverted right x axis y axis) VIRTUAL1 disconnected (normal left inverted right x axis y axis) eDP-1-2 disconnected (normal left inverted right x axis y axis) DVI-D-1-1 disconnected (normal left inverted right x axis y axis) the scaling command I iniate when attaching this external monitor: xrandr \ --verbose \ --output VIRTUAL1 \ --off \ --output DP2 \ --off \ --output DP1 \ --off \ --output HDMI2 \ --off \ --output HDMI1 \ --mode 1920x1080 \ --scale 1.5x1.5 \ --pos 0x324 \ --rotate normal \ --output eDP1 \ --mode 2880x1620 \ --pos 2880x324 \ --rotate normal \ --primary \ --output VGA1 \ --off ### Notes: resizing elements inside qbittorrent seems to fix this not linked to: #8126 (using qt5) not suffering from these qt4 related bugs for some reason too: #7879 #7766 #7746 #5027 #3617
deekerman 2026-02-21 18:38:21 -05:00
  • closed this issue
  • added the
    GUI
    label
Author
Owner

@thalieht commented on GitHub (Sep 6, 2019):

Some dialogs are not shown where they should be, rather they are on another screen

This was fixed some time ago but i don't know if it was before or after this issue.

@thalieht commented on GitHub (Sep 6, 2019): >Some dialogs are not shown where they should be, rather they are on another screen This was fixed some time ago but i don't know if it was before or after this issue.
Author
Owner

@allanlaal commented on GitHub (Sep 7, 2019):

I don't recall noticing it in the last few months, so it might've been fixed
closing for now

@allanlaal commented on GitHub (Sep 7, 2019): I don't recall noticing it in the last few months, so it might've been fixed closing for now
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#6832
No description provided.