[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Simplest example with qt does nog work which debi
From: |
CEL |
Subject: |
Re: [Discuss-gnuradio] Simplest example with qt does nog work which debian testing/buster |
Date: |
Wed, 17 Jan 2018 12:13:06 +0000 |
Hej,
Can you try editing your /home/sietse/top_block.py, and running it from
a console (regenerating it from GRC will overwrite your changes):
Add a
import sip
sip.setapi('QString', 1)
sip.setapi('QVariant', 1)
directly *before* "from PyQt4 import Qt".
Does that help?
Best regards,
Marcus
On Wed, 2018-01-17 at 12:01 +0000, Müller, Marcus (CEL) wrote:
> Hello Sietse,
>
> unless you're building GNU Radio from source on the next or a Qt5
> development branch, all this should use PyQt4, as far as I remember.
>
> Best regards,
> Marcus
>
> On Wed, 2018-01-17 at 11:21 +0100, address@hidden wrote:
> > Hello list (second attempt),
> >
> > Starting with gnuradio on Debian testing/buster and trying a flowgraph with
> > only
> > a "wav file source" and an "audio sink".
> >
> > With option "WX gui" it just works, but with option "QT gui" there is the
> > following error:
> >
> > File "/home/sietse/top_block.py", line 55, in __init__
> > self.restoreGeometry(self.settings.value("geometry").toByteArray())
> > AttributeError: 'QByteArray' object has no attribute 'toByteArray'
> >
> > If I remove that line everything works ok!
> > PyQt5 is being used.
> >
> > What am I doing wrong?
> >
> > Thanks in advance,
> > Sietse
> >
> >
> > _______________________________________________
> > Discuss-gnuradio mailing list
> > address@hidden
> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
smime.p7s
Description: S/MIME cryptographic signature