Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QT Gui Object Broken - doa_qt_compass.xml #3

Open
rf-engineer opened this issue May 9, 2018 · 5 comments
Open

QT Gui Object Broken - doa_qt_compass.xml #3

rf-engineer opened this issue May 9, 2018 · 5 comments

Comments

@rf-engineer
Copy link

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>

@natetemple
Copy link
Contributor

natetemple commented May 10, 2018

@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 gnuradio/gnuradio@dbdd204 that resolves this issue with QT sinks on GNU Radio 3.7.12.0.

@rf-engineer
Copy link
Author

rf-engineer commented May 10, 2018

@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 .

@YuexinZhao
Copy link

YuexinZhao commented Oct 15, 2018

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

@Ka-zam
Copy link

Ka-zam commented Nov 15, 2018

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

@yuwei66
Copy link

yuwei66 commented Jul 19, 2019

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants