[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: PyQt6 and QWindowCapture
From: Jason Hallen <hallenj () gmail ! com>
Date: 2024-02-22 16:41:39
Message-ID: CA+-0_doZgQkaqmXfGv-aTKnfyu_8Q1fWowMAcnjC__MFR=9DDQ () mail ! gmail ! com
[Download RAW message or body]
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?
Thanks for your help,
Jason
On Thu, Feb 22, 2024 at 10:27 AM Phil Thompson <phil@riverbankcomputing.com>
wrote:
> On 22/02/2024 15:36, Jason Hallen wrote:
> > Hello,
> >
> > Is there a reason that QtMultimedia's QWindowCapture class isn't
> > implemented in PyQt6? I'm able to use QScreenCapture to record a
> > screencast
> > of my entire screen, but I'm hoping to record a screencast of a
> > specific
> > window within PyQt.
> >
> > Thanks!
> > Jason
>
> It is implemented.
>
> Phil
>
[Attachment #3 (text/html)]
<div dir="ltr"><div>That's great to hear. I wonder what's going wrong for me \
then. When importing the class I get this \
error:</div><div><br></div><div>ImportError: cannot import name \
'QWindowCapture' from 'PyQt6.QtMultimedia' \
(/Users/hallenj/miniconda3/envs/csound/lib/python3.11/site-packages/PyQt6/<a \
href="http://QtMultimedia.abi3.so">QtMultimedia.abi3.so</a>)</div><div><br></div><div>I've \
got the 6.5.1 version. Is there a different version or a particular distribution of \
PyQt6 I should be using?</div><div><br></div><div>Thanks for your \
help,</div><div>Jason<br></div></div><br><div class="gmail_quote"><div dir="ltr" \
class="gmail_attr">On Thu, Feb 22, 2024 at 10:27 AM Phil Thompson <<a \
href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>> \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 22/02/2024 15:36, \
Jason Hallen wrote:<br> > Hello,<br>
> <br>
> Is there a reason that QtMultimedia's QWindowCapture class isn't<br>
> implemented in PyQt6? I'm able to use QScreenCapture to record a <br>
> screencast<br>
> of my entire screen, but I'm hoping to record a screencast of a <br>
> specific<br>
> window within PyQt.<br>
> <br>
> Thanks!<br>
> Jason<br>
<br>
It is implemented.<br>
<br>
Phil<br>
</blockquote></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic