Qt-interest Archive, February 2007
MacOS X open doc events
Message 1 in thread
Hi,
I have Qt app that i've ported to MacOS X. How does one receive
AppleEvents from within Qt? In particular, I want to receive the
'odoc' event so that the application can open a document when the
document is double clicked.
thanks - jc
John Clyne
National Center for Atmospheric Research
303.497.1236 (w), 303.809.1922 (c)
clyne@xxxxxxxx
--
[ signature omitted ]
Message 2 in thread
John,
You need to catch the FileOpenEvent in QApplication as described in
assistant. An event filter might be handy here.
--Justin
John Clyne wrote:
> Hi,
>
> I have Qt app that i've ported to MacOS X. How does one receive
> AppleEvents from within Qt? In particular, I want to receive the
> 'odoc' event so that the application can open a document when the
> document is double clicked.
>
> thanks - jc
>
> John Clyne
> National Center for Atmospheric Research
> 303.497.1236 (w), 303.809.1922 (c)
> clyne@xxxxxxxx
>
>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
begin:vcard
begin:vcard
fn:Justin Noel
n:Noel;Justin
org:ICS;Engineering
adr:;;54B Middlesex Trpk;Bedford;MA;01730;USA
email;internet:justin@xxxxxxx
title:Sr. Consulting Engineer / Certified Qt Instructor
tel;work:(617) 621-0060
url:http://www.ics.com
version:2.1
end:vcard