[Interest] QMessageBox not displayed when monitor is switched off

Patrick ZAJDA patrick at zajda.fr
Mon Dec 9 16:31:38 CET 2024


Hello,

Thank you for your response. However, I believe there is a 
misunderstanding regarding the issue I reported. This is not related to 
preventing QMessageBox from being displayed on a headless display or 
mocking its calls.

The problem specifically arises when the screen is turned off using 
xrandr (while the desktop environment is still active). With Qt5, 
QMessageBox was displayed properly even when the screen was off. 
However, with Qt6, it no longer appears under the same conditions, which 
seems to indicate a regression.

To clarify further:
- This behavior is unrelated to Python bindings (PySide6) as I have 
reproduced the issue using a minimal example in C++.
- The issue only occurs when the screen is turned off with xrandr. When 
the screen is on, QMessageBox functions as expected.
- The desktop environment I am using is MATE on Debian Bookworm, with 
NVIDIA as the graphics card driver.

I am simply seeking guidance on whether this issue can be considered a 
valid bug in Qt itself and, if so, the proper way to report it.
Of course, if a workaround exists, I am absolutely open to applying it. 
However, I still believe this issue represents a regression in Qt6.

Thank you again for your time and assistance.

Best regards,
Patrick ZAJDA


Le 09/12/2024 à 16:13, Patrick Stinson a écrit :
> I don’t quite follow the description of the problem, but if you are 
> trying to keep QMessageBox from showing on something analogous to a 
> headless display then you can mock out it’s calls with the `mock` 
> extension. Then you can ensure they are never raised and can insert 
> your own callback to handle the static method call programatically.
>
>
>
>> On Dec 9, 2024, at 5:56 AM, Patrick ZAJDA <patrick at zajda.fr> wrote:
>>
>> Hello,
>>
>> I am blind and use the attached bash script to switch my screen off 
>> and back on when needed.
>> I use Debian Bookworm with Mate desktop, NVIDIA as my graphic card.
>>
>> I notice when screen is off, QMessageBox are note displayed at all 
>> when it worked with QT5.
>> I tried both with PySide6 and, thanks to an IA, using C++ with the 
>> same result so the issue is not related to Python.
>>
>> I am lost in QT procedure to report this kind of issue.
>> Could someone explain me where and how should I report this kind of 
>> issue and firstly, could it be considered as a QT issue?
>>
>> Best regards,
>>
>> --
>> Patrick ZAJDA
>> <NVDACertifiedExpert2022.png>
>> <monitor-toggle.sh.txt>_______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> https://lists.qt-project.org/listinfo/interest
>

-- 
Patrick ZAJDA
<https://certification.nvaccess.org/>Logo certification NVDA expert 2022
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20241209/b784f6fb/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NVDACertifiedExpert2022.png
Type: image/png
Size: 101758 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20241209/b784f6fb/attachment-0001.png>


More information about the Interest mailing list