[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] QFileOpenEvent and double-clicking files
From:       Nathan Weston <nathan () genarts ! com>
Date:       2010-10-29 15:30:58
Message-ID: 4CCAE8B2.8020202 () genarts ! com
[Download RAW message or body]

I'm trying to use QFileOpenEvent on Mac to make files open in my 
application when they're double-clicked. It very nearly works -- if my 
application is already running and I double-click an associated file (or 
drag a file onto the dock icon), it receives a QFileOpenEvent as expected.

If my application isn't running, then double-clicking a file launches 
the application -- but it never receives the QFileOpenEvent.

Is it possible that the OS is sending the "open" Apple Event before 
QApplication is initialized in order to receive it? Does anyone know of 
a workaround?
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic