Results 1 to 3 of 3

Thread: QMdiArea + QwtPlot = Crash?

  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.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QMdiArea + QwtPlot = Crash?

    How do you add that plot to QMdiSubWindow?

  3. #3
    Join Date
    Nov 2008
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default [Solved] QMdiArea + QwtPlot = Crash?

    After a long time i tried to solve my problem again - with success.
    It works without any problem when i generate the code with the option "Multithreaded-DLL".

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.