[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&#39;s great to hear. I wonder what&#39;s going wrong for me \
then. When importing the class I get this \
error:</div><div><br></div><div>ImportError: cannot import name \
&#39;QWindowCapture&#39; from &#39;PyQt6.QtMultimedia&#39; \
(/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&#39;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 &lt;<a \
href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>&gt; \
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> &gt; Hello,<br>
&gt; <br>
&gt; Is there a reason that QtMultimedia&#39;s QWindowCapture class isn&#39;t<br>
&gt; implemented in PyQt6? I&#39;m able to use QScreenCapture to record a <br>
&gt; screencast<br>
&gt; of my entire screen, but I&#39;m hoping to record a screencast of a <br>
&gt; specific<br>
&gt; window within PyQt.<br>
&gt; <br>
&gt; Thanks!<br>
&gt; 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