Results 1 to 3 of 3

Thread: QMdiArea + QwtPlot = Crash?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2008
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default QMdiArea + QwtPlot = Crash?

    Hi!

    I´m using a QMainWindow with a QMdiArea.

    When i add a simple QMdiSubWindow (with the line "setAttribute(Qt::WA_DeleteOnClose);" in the constructor) everything works.

    But when I add a QwtPlot to this QMdiSubWindow and close this SubWindow my program crashes.

    Visual Studio shows me an error somewhere in the file "free.c".

    When I delete the line "setAttribute(Qt::WA_DeleteOnClose);" i can close the SubWindow without the crash, but my QMdiArea thinks that there is still an active QMdiSubWindow (logically).

    Anybody knows this problem?

    UPDATE:
    I have the same problem with any Qwt Widget in a QMdiSubWindow.

    Thanks and greetings,
    André
    Last edited by exdream; 10th November 2008 at 13:44.

Similar Threads

  1. QMdiArea unwanted actvation
    By fullmetalcoder in forum Qt Programming
    Replies: 7
    Last Post: 12th November 2007, 07: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
  •  
Qt is a trademark of The Qt Company.