Hovering over the context menu in the tray triggers a click without a physical click #16354

Open
opened 2026-02-22 03:02:53 -05:00 by deekerman · 17 comments
Owner

Originally created by @stalkerok on GitHub (Nov 14, 2024).

qBittorrent & operating system versions

qBittorrent v5.0.1 (64-bit) qBittorrent v5.1.0alpha1 (64-bit) / CI # 6835
Qt: 6.7.3 Qt: 6.8.0
Libtorrent: 1.2.19.0 Libtorrent: 1.2.19.0
Boost: 1.86.0 Boost: 1.86.0
OpenSSL: 3.4.0 OpenSSL: 3.3.2
zlib: 1.3.1 zlib: 1.3.1

What is the problem?

Hovering over the context menu in the tray triggers a click without a physical click.
It may not be reproducible the first time, I had to try my best to get it on video and it didn't get too long.

qBittorrent v5.0.1 (64-bit)

https://github.com/user-attachments/assets/acd1df10-ee83-4d61-a8ac-73f707693c01

qBittorrent v5.1.0alpha1 (64-bit) / CI # 6835

https://github.com/user-attachments/assets/be75182d-6add-427d-9c7f-c34274bcf19c

Steps to reproduce

Start qBittorrent (default settings).
Change the style to Fusion.
Change the window state at startup to hidden.
Close qBittorrent.
Start qBittorrent, in the tray context menu hover the mouse over any action such as close.
qBittorrent will be closed without physical click.

Additional context

No response

Log(s) & preferences file(s)

No response

Originally created by @stalkerok on GitHub (Nov 14, 2024). ### qBittorrent & operating system versions | qBittorrent v5.0.1 (64-bit) | qBittorrent v5.1.0alpha1 (64-bit) / CI # 6835 | |--------|--------| | Qt: 6.7.3 | Qt: 6.8.0 | | Libtorrent: 1.2.19.0 | Libtorrent: 1.2.19.0 | | Boost: 1.86.0 | Boost: 1.86.0 | | OpenSSL: 3.4.0 | OpenSSL: 3.3.2 | | zlib: 1.3.1 | zlib: 1.3.1 | ### What is the problem? Hovering over the context menu in the tray triggers a click without a physical click. It may not be reproducible the first time, I had to try my best to get it on video and it didn't get too long. qBittorrent v5.0.1 (64-bit) https://github.com/user-attachments/assets/acd1df10-ee83-4d61-a8ac-73f707693c01 qBittorrent v5.1.0alpha1 (64-bit) / CI # 6835 https://github.com/user-attachments/assets/be75182d-6add-427d-9c7f-c34274bcf19c ### Steps to reproduce Start qBittorrent (default settings). Change the style to Fusion. Change the window state at startup to hidden. Close qBittorrent. Start qBittorrent, in the tray context menu hover the mouse over any action such as close. qBittorrent will be closed without physical click. ### Additional context _No response_ ### Log(s) & preferences file(s) _No response_
Author
Owner

@stalkerok commented on GitHub (Nov 14, 2024):

@glassez @Chocobo1 @xavier2k6
Please pay attention to this. The client closed twice on the server, and if the first time I thought that I accidentally clicked “Exit”, the second time I realized that it was a serious bug. That said, I try not to restart the client on the server unnecessarily.

@stalkerok commented on GitHub (Nov 14, 2024): @glassez @Chocobo1 @xavier2k6 Please pay attention to this. The client closed twice on the server, and if the first time I thought that I accidentally clicked “Exit”, the second time I realized that it was a serious bug. That said, I try not to restart the client on the server unnecessarily.
Author
Owner

@xavier2k6 commented on GitHub (Nov 15, 2024):

Please pay attention to this.

I haven't observed this, can't seem to reproduce but will keep an eye on it.

@xavier2k6 commented on GitHub (Nov 15, 2024): >Please pay attention to this. I haven't observed this, can't seem to reproduce but will keep an eye on it.
Author
Owner

@glassez commented on GitHub (Nov 15, 2024):

@stalkerok
I can't reproduce it either. There is a chance that these are problems with the system or hardware. Do you have the opportunity to test it on another one?

@glassez commented on GitHub (Nov 15, 2024): @stalkerok I can't reproduce it either. There is a chance that these are problems with the system or hardware. Do you have the opportunity to test it on another one?
Author
Owner

@stalkerok commented on GitHub (Nov 15, 2024):

This was reproducible on two PCs: the server and my home PC. Unfortunately, it is not so easy to reproduce.

@stalkerok commented on GitHub (Nov 15, 2024): This was reproducible on two PCs: the server and my home PC. Unfortunately, it is not so easy to reproduce.
Author
Owner

@stalkerok commented on GitHub (Nov 15, 2024):

I was able to reproduce this on a third machine. You should try, it is quite reproducible.

@stalkerok commented on GitHub (Nov 15, 2024): I was able to reproduce this on a third machine. You should try, it is quite reproducible.
Author
Owner

@stalkerok commented on GitHub (Dec 1, 2024):

This seems to be a Qt6 bug. I reproduced this on official 4.6.7 with Qt 6.4.3 and could not reproduce on official 4.5.5 with Qt 5.15.10, on 4.6.7 Enhanced with Qt 5.15.15, on 4.6.7 with Qt 5.15.2.

lol I reproduced this even on 4.4.5 with Qt 6.3.0

@stalkerok commented on GitHub (Dec 1, 2024): This seems to be a Qt6 bug. I reproduced this on official 4.6.7 with Qt 6.4.3 and could not reproduce on official 4.5.5 with Qt 5.15.10, on 4.6.7 Enhanced with Qt 5.15.15, [on 4.6.7 with Qt 5.15.2](https://github.com/qbittorrent/qBittorrent/discussions/21929#discussioncomment-11424947). lol I reproduced this even on 4.4.5 with Qt 6.3.0
Author
Owner

@PoMcku commented on GitHub (Dec 2, 2024):

qBittorrent v5.0.1 (64-bit)
Qt: 6.7.3
Libtorrent: 1.2.19.0
Boost: 1.86.0
OpenSSL: 3.4.0
zlib: 1.3.1
Windows 10 22H2

Reproduced it too.

https://github.com/user-attachments/assets/4a5db5e1-3779-4c59-9115-84406a39dc6e

@PoMcku commented on GitHub (Dec 2, 2024): qBittorrent v5.0.1 (64-bit) Qt: 6.7.3 Libtorrent: 1.2.19.0 Boost: 1.86.0 OpenSSL: 3.4.0 zlib: 1.3.1 Windows 10 22H2 Reproduced it too. https://github.com/user-attachments/assets/4a5db5e1-3779-4c59-9115-84406a39dc6e
Author
Owner

@xavier2k6 commented on GitHub (Dec 4, 2024):

@stalkerok I still can't reproduce this, have you tested older Qt6.x builds to determine if it was there since day one or if a later update introduced this? How does Qt 6.8.1 behave?

@xavier2k6 commented on GitHub (Dec 4, 2024): @stalkerok I still can't reproduce this, have you tested older Qt6.x builds to determine if it was there since day one or if a later update introduced this? How does Qt 6.8.1 behave?
Author
Owner

@stalkerok commented on GitHub (Dec 4, 2024):

I still can't reproduce this, have you tested older Qt6.x builds to determine if it was there since day one or if a later update introduced this?

Below Qt 6.3.0 I have not tested.

How does Qt 6.8.1 behave?

I think unchanged (not tested).

@stalkerok commented on GitHub (Dec 4, 2024): > I still can't reproduce this, have you tested older Qt6.x builds to determine if it was there since day one or if a later update introduced this? Below Qt 6.3.0 I have not tested. > How does Qt 6.8.1 behave? I think unchanged (not tested).
Author
Owner

@glassez commented on GitHub (Dec 4, 2024):

I still can't reproduce this

What version of Windows did you test it on? 10 or 11?
As I can see both people who are affected by this issue are under Windows 10, right?

@glassez commented on GitHub (Dec 4, 2024): > I still can't reproduce this What version of Windows did you test it on? 10 or 11? As I can see both people who are affected by this issue are under Windows 10, right?
Author
Owner

@xavier2k6 commented on GitHub (Dec 4, 2024):

What version of Windows did you test it on? 10 or 11?

10 (22H2)

As I can see both people who are affected by this issue are under Windows 10, right?

Correct

@xavier2k6 commented on GitHub (Dec 4, 2024): >What version of Windows did you test it on? 10 or 11? 10 (22H2) >As I can see both people who are affected by this issue are under Windows 10, right? Correct
Author
Owner

@xavier2k6 commented on GitHub (Dec 4, 2024):

Here are master builds with Qt 6.5.x -> Qt 6.8.1
https://github.com/xavier2k6/qBittorrent/actions/runs/12139289114

@xavier2k6 commented on GitHub (Dec 4, 2024): Here are master builds with Qt 6.5.x -> Qt 6.8.1 https://github.com/xavier2k6/qBittorrent/actions/runs/12139289114
Author
Owner

@xavier2k6 commented on GitHub (Dec 4, 2024):

Maybe, there is some missing steps/setting....(other software interference)

@xavier2k6 commented on GitHub (Dec 4, 2024): Maybe, there is some missing steps/setting....(other software interference)
Author
Owner

@stalkerok commented on GitHub (Dec 4, 2024):

I tested this on different versions of W10, on different machines, on the touchpad (without using the mouse). There are no issues with Qt 5.

https://github.com/user-attachments/assets/d27fb29c-c73e-460d-975d-7ab78ba0a67a

qBittorrent v5.1.0alpha1 (64-bit) https://github.com/xavier2k6/qBittorrent/actions/runs/12139289114/artifacts/2267182363
Qt: 6.8.1
Libtorrent: 2.0.11.0
Boost: 1.86.0
OpenSSL: 3.4.0
zlib: 1.3.1

@stalkerok commented on GitHub (Dec 4, 2024): I tested this on different versions of W10, on different machines, on the touchpad (without using the mouse). There are no issues with Qt 5. https://github.com/user-attachments/assets/d27fb29c-c73e-460d-975d-7ab78ba0a67a qBittorrent v5.1.0alpha1 (64-bit) https://github.com/xavier2k6/qBittorrent/actions/runs/12139289114/artifacts/2267182363 Qt: 6.8.1 Libtorrent: 2.0.11.0 Boost: 1.86.0 OpenSSL: 3.4.0 zlib: 1.3.1
Author
Owner

@xavier2k6 commented on GitHub (Dec 4, 2024):

There does seem to be an issue alright, but I think the repro steps are incorrect (investigating)

@xavier2k6 commented on GitHub (Dec 4, 2024): There does seem to be an issue alright, but I think the repro steps are incorrect (investigating)
Author
Owner

@xavier2k6 commented on GitHub (Dec 4, 2024):

@glassez Qt 6.8.1 seems to bring the issue to the forefront quite easily.

  1. Download any of the Qt 6.8.1 builds from https://github.com/qbittorrent/qBittorrent/issues/21841#issuecomment-2517460270
  2. run in portable mode/clean profile
  3. don't change any other settings, just click minimize on main window
  4. right click tray menu & immediately set global speed limits window should pop-up
  5. if you click on the red x on this window instead of ok button, every time you right click in tray, set global speed limits window will keep popping-up
  6. click ok button on set global speed limits window & all should be ok again unless red x is clicked......
  7. step 6 is a workaround because as soon as you close qBittorrent & open again......(it'll happen again)
@xavier2k6 commented on GitHub (Dec 4, 2024): @glassez Qt 6.8.1 seems to bring the issue to the forefront quite easily. 1. Download any of the Qt 6.8.1 builds from https://github.com/qbittorrent/qBittorrent/issues/21841#issuecomment-2517460270 2. run in portable mode/clean profile 3. don't change any other settings, just click `minimize` on main window 4. right click tray menu & immediately `set global speed limits` window should pop-up 5. if you click on the `red x` on this window instead of `ok` button, every time you right click in tray, `set global speed limits` window will keep popping-up 6. click `ok` button on `set global speed limits` window & all should be ok again unless `red x` is clicked...... 7. step 6 is a workaround because as soon as you close qBittorrent & open again......(it'll happen again)
Author
Owner

@glassez commented on GitHub (Dec 8, 2024):

I am able to reproduce it with Qt 6.8.1.
For me, a necessary and sufficient condition for its reproducibility is the fact that the main window is "manually" minimized (while it does not necessarily have to remain minimized). After that, when the tray menu is shown, it appears directly under the cursor, which triggers the menu item that ids placed under the cursor.

@glassez commented on GitHub (Dec 8, 2024): I am able to reproduce it with Qt 6.8.1. For me, a necessary and sufficient condition for its reproducibility is the fact that the main window is "manually" minimized (while it does not necessarily have to remain minimized). After that, when the tray menu is shown, it appears directly under the cursor, which triggers the menu item that ids placed under the cursor.
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#16354
No description provided.