Results 1 to 2 of 2

Thread: Mac Plugin Event Loop Problems

  1. #1
    Join Date
    Jun 2009
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Mac Plugin Event Loop Problems

    I am writing a plugin for an existing application and am having trouble with events . The plugin uses a QT dynamic library. The application is a very old Macapp Mac Application that does not really support carbon events. I am finding that after I create my QApplication and bring up my QMainWindow in my plugin even after I close my QMainWindow I still find that QApplication is eating all my events and my Macapp Application is getting no events what so ever. To solve this I have overridden QApplication::macEventFilter and called CallNextEventHandler. This changes means that I can know quit my main Macapp Application but I am finding that although shortcuts working for my menus if I go and try and select a menu item nothing happens. I have a Carbon Event Handler in my Macapp Application and it falls into the code but I am still finding button clicks , choosing a menu item , or choosing a popup is not working. I really need so help here. Do I need to call WaitNextEvent in my Carbon Event Handler in my Macapp Application, or repost the event?? Am I doing the right thing??
    I have heard a lot about merging event loops and stuff but what I would like is to not have to create a QApplication and prevent Qt from handling my events and let my Application handle events and sending events to my QT library where I could call process events but I cannot seem to get any of this to really work. What is the correct methodology to use to get this to work??? Any Help would be appreciated and really needed as I am on a tight tight Deadline with my back up against the wall..

    Thanks
    Grant

  2. #2
    Join Date
    Mar 2010
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Mac Plugin Event Loop Problems

    I have exactly the same problem have you been able to resolve this?

Similar Threads

  1. Replies: 0
    Last Post: 23rd October 2008, 12:43
  2. Qt plug-in for GLib event loop based application
    By profoX in forum Qt Programming
    Replies: 1
    Last Post: 14th June 2008, 14:27
  3. Glib event loop
    By Brandybuck in forum Qt Programming
    Replies: 2
    Last Post: 28th September 2006, 17:19
  4. Workload in a QThread blocks main application's event loop ?
    By 0xBulbizarre in forum Qt Programming
    Replies: 14
    Last Post: 9th April 2006, 21:55
  5. Replies: 4
    Last Post: 23rd January 2006, 16:51

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.