Results 1 to 2 of 2

Thread: how to implement QApplication.notify()

  1. #1
    Join Date
    Sep 2009
    Posts
    60
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default how to implement QApplication.notify()

    I am getting this error:

    Qt has caught an exception thrown from an event handler. Throwing
    exceptions from an event handler is not supported in Qt. You must
    reimplement QApplication::notify() and catch all exceptions there.

    terminate called after throwing an instance of 'std::bad_alloc'
    what(): St9bad_alloc


    So I put:

    def notify(self, receiver, event):

    I want to see what function is throwing the exception and what the exception is. What do I have to put in the notify function to do this?

    I am using Python but help in C++ would be welcome too.

  2. #2
    Join Date
    Sep 2009
    Posts
    60
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to implement QApplication.notify()

    Can I get some help?

Similar Threads

  1. QApplication::notify()
    By jeffpogo in forum Qt Programming
    Replies: 1
    Last Post: 16th June 2009, 23:46
  2. Reimplementing QApplication::notify( )
    By Rayven in forum Qt Programming
    Replies: 1
    Last Post: 15th May 2008, 18:22
  3. Qt web notify
    By bunjee in forum Qt Programming
    Replies: 4
    Last Post: 10th January 2008, 14:24
  4. Reimplementing QApplication::notify()
    By Doug Broadwell in forum Qt Programming
    Replies: 5
    Last Post: 21st June 2007, 22:41
  5. Reimplementing QApplication::notify()
    By Doug Broadwell in forum Newbie
    Replies: 3
    Last Post: 13th June 2007, 08:53

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.