Results 1 to 2 of 2

Thread: Expand qglwidget

  1. #1
    Join Date
    Mar 2011
    Posts
    34
    Qt products
    Qt4
    Platforms
    Windows

    Default Expand qglwidget

    Hi,

    I have an interface with a qGLwidget and some layouts with widgets to interact with. My question is, when I run my app, when I expand the frame of the app, is there a way to just expand my qGLwidget?

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Expand qglwidget

    QGLWidget is a QWidget so you need to set SizePolicies.

    After that you can reimplement QGLWidget::resizeGL() in order to setup the viewport according new sizes
    A camel can go 14 days without drink,
    I can't!!!

Similar Threads

  1. Expand QGraphicsScene at runtime
    By sean.reynolds in forum Qt Programming
    Replies: 1
    Last Post: 18th April 2011, 15:17
  2. Expand item in QListView
    By Kode.Cooper in forum Qt Programming
    Replies: 5
    Last Post: 30th December 2009, 08:22
  3. Expand and keep ratio
    By nifei in forum Qt Programming
    Replies: 1
    Last Post: 8th September 2009, 16:19
  4. QTreeViews should not expand!
    By zwwe in forum Qt Programming
    Replies: 2
    Last Post: 13th February 2008, 14:52
  5. expand a treeWidget
    By mattia in forum Newbie
    Replies: 6
    Last Post: 6th December 2007, 13:24

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.