3
$\begingroup$

I create simple flow graph in gnuradio as below:

enter image description here

The expected output order is:

  • 1.qt gui sink
  • 2.frequency sink
  • 3.time sink

But time sink appear first,then gui sink:

enter image description here

How to change the display order of qt gui sink in gnuradio?

$\endgroup$
3
  • $\begingroup$ I haven't run gnuradio in about 5 years... Could you check two things? From memory, I believe it is either that the order you create the elements matter or (much more likely) there is an attribute on the objects. I have a build job running, but it will take a long time to complete. If you can check this we can get a proper answer written. :) $\endgroup$
    – David Hoelzer
    Sep 2 '21 at 22:35
  • $\begingroup$ @DavidHoelzer,I confirmed it's nothing to do with order you create the elements.Also, I didn't find place to set atrribute. $\endgroup$
    – kittygirl
    Sep 2 '21 at 23:19
  • 3
    $\begingroup$ Ok. I am waiting for the build to complete. I know I've done this before. I should have an answer for you sometime tomorrow morning. :) $\endgroup$
    – David Hoelzer
    Sep 2 '21 at 23:21
2
$\begingroup$

All QT GUI elements support a GUI hint which dictates how they are laid out in a grid.

All of the QT GUI widgets and plots have a parameter called GUI Hint. This is used to arrange GUIs in the window, as well as assign them to tabs in a QT GUI Tab Widget.

enter image description here

The format is:

(row, column, row span, column span)

For example,

enter image description here

$\endgroup$
1
  • $\begingroup$ Thanks Phil, you beat me to it. @kittygirl take note that you don't need to do this for every single element. If you are creating complex views on a tab widget, you can simply set this for the collection of controls (the tab widget) rather than having to do it for every single control displayed. As for me, I usually set the ones I care most about and evaluate if the autolayout "works" for the others before configuring every one of them. $\endgroup$
    – David Hoelzer
    Sep 3 '21 at 13:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.