PyQt6 and QWindowCapture

Phil Thompson phil at riverbankcomputing.com
Thu Feb 22 16:49:19 GMT 2024


On 22/02/2024 16:41, Jason Hallen wrote:
> That's great to hear. I wonder what's going wrong for me then. When
> importing the class I get this error:
> 
> ImportError: cannot import name 'QWindowCapture' from 
> 'PyQt6.QtMultimedia'
> (/Users/hallenj/miniconda3/envs/csound/lib/python3.11/site-packages/PyQt6/
> QtMultimedia.abi3.so)
> 
> I've got the 6.5.1 version. Is there a different version or a 
> particular
> distribution of PyQt6 I should be using?

As QWindowCapture was added to Qt v6.6 then you need PyQt v6.6 at least.

Phil


More information about the PyQt mailing list