PDA

View Full Version : Problems resizing QWidget & Phonon



gmclachl
17th April 2009, 20:12
Hi,
I have been trying to figure out how to get a widget to resize automatically when the window is resized, but I can't figure out how. To make it a bit more complicated I am using a Phonon VideoWidget.

So I add a vertical layout in QT Designer and from code

Phonon::VideoWidget* vw = new Phonon::VideoWidget(this);
ui->verticalLayout->addWidget(vw);

Now my understanding is that the widget should resize to the size of the layout, but it doesn't seem to.

Thanks
George

Chisum
18th April 2009, 05:58
I have been working on a wiki page about this. The short answer is to right click on the QWidget and then select 'Lay out' and then click on 'Layout in a Grid'. I have included the rough draft of my wiki page.

gary

gmclachl
18th April 2009, 17:32
Thanks for the info, working now

George