Results 1 to 6 of 6

Thread: Access violation while alt-tabbing from an actively updated plot widget

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Jun 2009
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Access violation while alt-tabbing from an actively updated plot widget

    Hurr, yeah. I get your hint now that I read the code and documents for a while: this is a threading problem. I replaced the direct function call from another thread with a signal-slot connection, which makes sure that the setData() call is handled in the appropriate thread.

    Many thanks for your guidance!

    Quote Originally Posted by http://doc.trolltech.com/4.2/threads.html#qobject-reentrancy
    Although QObject is reentrant, the GUI classes, notably QWidget and all its subclasses, are not reentrant. They can only be used from the main thread.
    Last edited by dumdidum; 17th June 2009 at 14:05.

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.