Results 1 to 2 of 2

Thread: QGLWidget resize not working

  1. #1
    Join Date
    Jan 2010
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Windows

    Default QGLWidget resize not working

    Hi,
    I have an issue with resizing my openGL widget class (QGLWidget).
    The widget is rendered in a dock widget but upon resizing the window the graphics display incorrectly. If a move the window position however the viewport resizes and all is fine.

    Also i've added a context menu to the window and when it renders, focus seems to be lost and the opengL graphic display breaks.

    I've overriden initializeGL, paintGL and resizeGL..

    Any help much appreciated.. ?

    Thanks, M

  2. #2
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QGLWidget resize not working

    Can you post compiling & working example code that shows the problem (zipped/tarred)?
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

Similar Threads

  1. Replies: 1
    Last Post: 2nd July 2010, 19:47
  2. QGLWidget resize problem
    By Term Dickem in forum Qt Programming
    Replies: 0
    Last Post: 26th May 2010, 14:12
  3. QGLWidget and resize
    By themolecule in forum Qt Programming
    Replies: 1
    Last Post: 13th May 2008, 08:46
  4. QGLWidget Resize Problem
    By Sandip in forum Qt Programming
    Replies: 2
    Last Post: 28th February 2008, 06:47
  5. QGLWidget resize problem.
    By anderl in forum Qt Programming
    Replies: 2
    Last Post: 22nd January 2008, 08:57

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.