Results 1 to 2 of 2

Thread: Does the default QDialog closeEvent stop a QGLWidget from rendering

  1. #1
    Join Date
    Dec 2010
    Posts
    76
    Thanks
    13
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Does the default QDialog closeEvent stop a QGLWidget from rendering

    I have an application that creates a QDialog and within the dialog is a QGLWidget and I am not overriding the default behavior of clicking on the X button. I believe the default behavior is closeEvent being called when you click the X button, however I am curious does that stop a QGLWidget from rendering when closeEvent is called? I am seeing some intense memory increase when I open and close new QDialogs so I am wondering if the OpenGL rendering is still being done in the background.

    Thanks for any help!

  2. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Does the default QDialog closeEvent stop a QGLWidget from rendering

    If QGLWidget is a child of the main QDialog, then it is deleted after you close the dialog.
    Maybe the memory increase is caused by initialization routines of new widgets, not the cleanup ? Or maybe your program leaks memory somewhere ?

Similar Threads

  1. Poppler - Stop rendering an image.
    By mimosin in forum Qt Programming
    Replies: 1
    Last Post: 21st September 2010, 12:44
  2. QDialog and closeEvent
    By ricardo in forum Qt Programming
    Replies: 6
    Last Post: 13th July 2009, 02:07
  3. Replies: 1
    Last Post: 18th November 2008, 17:41
  4. How to stop event loop of QDialog in Qt4
    By node_ex in forum Qt Programming
    Replies: 3
    Last Post: 8th July 2008, 07:19
  5. simple Question about QDialog::closeEvent(...)
    By momesana in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2008, 18:09

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.