gr-doa icon indicating copy to clipboard operation
gr-doa copied to clipboard

QT Gui Object Broken - doa_qt_compass.xml

Open rf-engineer opened this issue 6 years ago • 5 comments

With the latest install of GR and UHD, it appears that the xml file for the block "QT GUI DoA Compass Sink" is no longer working out of the box. The command is not loading correctly and throws a Template Error in the generated Python code. Here's the original code:

<make>#set $win2 = 'self.%s.this_layout'%$id doa.compass($name, $min_val, $max_val, $step, $arc_bias) $(gui_hint()($win2))</make>

The following change would fix it:

<make>#set $win = 'self._%s_win'%$id doa.compass($name, $min_val, $max_val, $step, $arc_bias) $(gui_hint() % $win)</make>

rf-engineer avatar May 09 '18 23:05 rf-engineer

@rf-engineer Can you please try updating to the current GNU Radio maint-3.7 release [ https://github.com/gnuradio/gnuradio/tree/maint-3.7 ] which includes this commit https://github.com/gnuradio/gnuradio/commit/dbdd204ccd3e4d174f4390bcd0948f33f1a8bf0d that resolves this issue with QT sinks on GNU Radio 3.7.12.0.

natetemple avatar May 10 '18 00:05 natetemple

@natetemple So the Template_error that gets thrown does go away with the current maint-3.7 release. However, I'm now getting a QVBoxLayout issue:

Traceback (most recent call last):
  File "./run_RootMUSIC_lin_array_simulation.py", line 222, in <module>
    main()
  File "./run_RootMUSIC_lin_array_simulation.py", line 210, in main
    tb = top_block_cls()
  File "./run_RootMUSIC_lin_array_simulation.py", line 98, in __init__
    self.tab_grid_layout_1.addWidget(self.doa_compass_0.this_layout)
TypeError: arguments did not match any overloaded call:
  QGridLayout.addWidget(QWidget): argument 1 has unexpected type 'QVBoxLayout'
  QGridLayout.addWidget(QWidget, int, int, Qt.Alignment alignment=0): argument 1 has unexpected type 'QVBoxLayout'
  QGridLayout.addWidget(QWidget, int, int, int, int, Qt.Alignment alignment=0): argument 1 has unexpected type 'QVBoxLayout'

Maybe this has to do with my installation? Python and QT are all up-to-date. When I make the changes that I mentioned above, I get the error that I noted in issue #4 .

rf-engineer avatar May 10 '18 12:05 rf-engineer

I also encountered the same issue about the QVBoxLayout with the latest install of GnuRadio and UHD. Any help will be appreciated! @natetemple @rf-engineer

YuexinZhao avatar Oct 15 '18 12:10 YuexinZhao

I also have this issue using GR 3.7.13.4 built from source.

Ka-zam avatar Nov 15 '18 10:11 Ka-zam

TypeError: arguments did not match any overloaded call: QGridLayout.addWidget(QWidget): argument 1 has unexpected type 'QVBoxLayout' QGridLayout.addWidget(QWidget, int, int, Qt.Alignment alignment=0): argument 1 has unexpected type 'QVBoxLayout' QGridLayout.addWidget(QWidget, int, int, int, int, Qt.Alignment alignment=0): argument 1 has unexpected type 'QVBoxLayout'

I have this issue , Can it be solved?

yuwei66 avatar Jul 19 '19 09:07 yuwei66