# QT object sizing

**URL:** <https://www.ruby-forum.com/t/qt-object-sizing/241985>\
**Category:** GNU Radio\
**Created:** [May 18, 2015, 7:50pm UTC](https://www.ruby-forum.com/t/qt-object-sizing/241985 "2015-05-18T19:50:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [May 18, 2015, 7:50pm UTC](https://www.ruby-forum.com/t/qt-object-sizing/241985/1 "2015-05-18T19:50:41Z")

</div>

I have a flowgraph that includes a couple of sliders and a frequency  
display below.

On a fairly low-res screen (1280x1024), I’m seeing that the flowchart  
GUI is fitting itself to the size of the screen, but the individual  
components don’t all fit without a vertical scroll bar.

I’d like to eliminate that so the whole window fits onto the screen  
without vertical scrolling. I thought I had too many elements, so I  
tried removing some controls. But all that seems to happen is that the  
FFT just makes itself bigger, so the vertical scrollbar is still needed.

Is there a way to constrain the size of the FFT, or in some other way  
control the GUI so that the elements fit without scrolling?

Thanks,  
John

---

<div class="post-metadata">

**Author:** ![John\_Ackermann\_N8UR](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/cdc98d/32.png) [@John\_Ackermann\_N8UR](https://www.ruby-forum.com/u/John_Ackermann_N8UR)\
**Post date:** [May 18, 2015, 8:08pm UTC](https://www.ruby-forum.com/t/qt-object-sizing/241985/2 "2015-05-18T20:08:48Z")

</div>

Hi John,

are you aware of the GUI hint field with which you can configure a grid  
in which you can place the GUI elements, and specify how many rows and  
columns the individual elements span [1]?

Best regards,  
Marcus

[1]  
[http://gnuradio.org/redmine/projects/gnuradio/wiki/GNURadioCompanion#Example](http://gnuradio.org/redmine/projects/gnuradio/wiki/GNURadioCompanion#Example)

---

<div class="post-metadata">

**Author:** ![John\_Ackermann\_N8UR](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/cdc98d/32.png) [@John\_Ackermann\_N8UR](https://www.ruby-forum.com/u/John_Ackermann_N8UR)\
**Post date:** [May 18, 2015, 8:18pm UTC](https://www.ruby-forum.com/t/qt-object-sizing/241985/3 "2015-05-18T20:18:08Z")

</div>

Hi Marcus –

I was generally aware of that, but didn’t have much luck getting it to  
reduce the size of the FFT. I will look at the example below.

Thanks!

John

---

<div class="post-metadata">

**Author:** ![John\_Ackermann\_N8UR](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/cdc98d/32.png) [@John\_Ackermann\_N8UR](https://www.ruby-forum.com/u/John_Ackermann_N8UR)\
**Post date:** [May 19, 2015, 12:56am UTC](https://www.ruby-forum.com/t/qt-object-sizing/241985/4 "2015-05-19T00:56:14Z")

</div>

Thanks for that info, Richard.

---

<div class="post-metadata">

**Author:** ![John\_Ackermann\_N8UR](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/cdc98d/32.png) [@John\_Ackermann\_N8UR](https://www.ruby-forum.com/u/John_Ackermann_N8UR)\
**Post date:** [May 18, 2015, 9:35pm UTC](https://www.ruby-forum.com/t/qt-object-sizing/241985/5 "2015-05-18T21:35:15Z")

</div>

There is currently no built in way to control sizing the way you want.  
You might be able to do it if you’re comfortable with qt programming,  
but I’m not sure about that.

This is on the developers radar, I know because I’ve had discussions  
about it with them in the past. They need more Gui programming help  
however.

Sent from my iPhone
