3 April 2025
11 April 2025
alexis jeandetHi, I can't test drag and drop with pytest-qt is there any trick?
I'd test the methods directly. So instantiate the QEvents with proper values and test if the drag enter event handler accepts the event, and that the drop handler does the correct thing. And test if beginning a drag exports the correct data.
That should cover it without having to do GUI scripting
also see https://bugreports.qt.io/browse/QTBUG-60234 FWIW
ThomasI'd test the methods directly. So instantiate the QEvents with proper values and test if the drag enter event handler accepts the event, and that the drop handler does the correct thing. And test if beginning a drag exports the correct data.
That should cover it without having to do GUI scripting
That's one solution, since I have some logic with place holder creation depending on where the mouse goes, I wanted to test this.
Ссылка
click to show
click to show
I did this in C++ few years ago https://github.com/SciQLop/QtGuiTestUtils/blob/master/QtGuiTestUtils/GUITestUtils.h
15 April 2025
16 April 2025
@thecompiler Qutebrowser was mentioned on the latest Hackaday podcast. Elliott apparently uses it as his preferred browser.
Ссылка
click to show
click to show
Well.. Apparently my government has decided to give the axe to the CVE program:
https://www.csoonline.com/article/3963190/cve-program-faces-swift-end-after-dhs-fails-to-renew-contract-leaving-security-flaw-tracking-in-limbo.html
I know we want to keep politics to a minimum, but this definitely affects Qt for Python, python devs, and the global tech community as a whole.
I apologize on behalf my federal government's behavior - it's definitely something I don't agree with.
Ссылка
click to show
click to show
And.. Mitre apparently had something in their back pocket:
https://www.thecvefoundation.org/
18 April 2025
Ссылка
click to show
click to show
that sounds like a bug then, might be worth reporting it https://wiki.qt.io/Qt_for_Python/Reporting_Bugs
22 April 2025
24 April 2025
@StSav012 I had a look at PYSIDE-2406 and did not solve that at all. But it was interesting to make this example run under disable-gil. I'm afraid there will be many tests that need re-thinking.