# Attribute Error: 'QByteArray' object has no attribute 'toByteArray'

**URL:** <https://www.ruby-forum.com/t/attribute-error-qbytearray-object-has-no-attribute-tobytearray/234403>\
**Category:** GNU Radio\
**Created:** [March 2, 2015, 3:56pm UTC](https://www.ruby-forum.com/t/attribute-error-qbytearray-object-has-no-attribute-tobytearray/234403 "2015-03-02T15:56:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [March 2, 2015, 3:56pm UTC](https://www.ruby-forum.com/t/attribute-error-qbytearray-object-has-no-attribute-tobytearray/234403/1 "2015-03-02T15:56:03Z")

</div>

Hello:

Working with the Dizzy build of E310 and trying to get GUI items to run  
that have no QWT in them to run.

Starting with uhd\_fft.grc (gnuradio-companion run with LD\_PRELOADS  
documented previously) with all blocks disable except QTGUI Frequency  
Sink.

This now runs until it hits

self.settings=Qt.QSettings(“GNU Radio”,“uhd\_fft”)  
self.restoreGeometry(self.settings.value(“geometry”). toByteArray()

Attribute Error: ‘QByteArray’ object has no attribute ‘toByteArray’

Commenting out this line allows that Python Program to run and properly  
display the GUI.

Looking briefly into this /usr/include/qt4/QtCore/qbytearray.h it  
doesn’t  
have any toByteArray and not being as familiar as I could be with what  
piece of code is asking for this, any pointers regarding where the root  
cause of this might be would be appreciated.

I know that there are issues with the PyQt implementation in this build  
that are being addressed, but my suspicion is that this is unrelated to  
that work.

Thanks,  
LVDJ
