Results 1 to 3 of 3

Thread: Problems resizing QWidget & Phonon

  1. #1
    Join Date
    Apr 2009
    Posts
    2
    Qt products
    Qt4

    Default Problems resizing QWidget & Phonon

    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

  2. #2
    Join Date
    Mar 2009
    Location
    California, USA
    Posts
    31
    Thanks
    2
    Thanked 7 Times in 6 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problems resizing QWidget & Phonon

    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
    Attached Files Attached Files

  3. #3
    Join Date
    Apr 2009
    Posts
    2
    Qt products
    Qt4

    Default Re: Problems resizing QWidget & Phonon

    Thanks for the info, working now

    George

Similar Threads

  1. I cannot run the phonon demos in the PXA270!Can someone help me?
    By Justin_W in forum Qt for Embedded and Mobile
    Replies: 8
    Last Post: 19th February 2010, 10:14
  2. Problems with phonon example
    By Ginsengelf in forum Qt Programming
    Replies: 2
    Last Post: 4th October 2008, 14:10
  3. Resizing problems when applying a layout
    By JimBrown in forum Newbie
    Replies: 1
    Last Post: 21st February 2007, 22:54

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.