PDA

View Full Version : How to Drag&Drop mail item from MS Outlook to my application?



honza
7th June 2007, 18:54
Hello,
does anybody know, how can i read contents of mails of MS Outlook? I want to use drag&drop for mails, and store them into my application.

i used QDropEvent and QMimeData, but the only result was, that i can get attachments(when i d&d attachments), not whole mail
__________________
Qt4.3.0, mingw, winxp


honza

jpn
8th June 2007, 09:29
I'd start with running the drop site example (http://doc.trolltech.com/4.2/draganddrop-dropsite.html) shipped together with Qt (examples\draganddrop\dropsite) to examine mime type and content of drag objects created by Outlook.

honza
16th June 2007, 20:29
hi guys,
i maybe found the way, how can i get data from outlook.
ActiveQt module is the solution,,, but it is only in commercial version of Qt.
what can i do? i use open source version of Qt.

please, can somebody help me?

h.

pakulo
17th June 2007, 07:30
I'd start with running the drop site example (http://doc.trolltech.com/4.2/draganddrop-dropsite.html) shipped together with Qt (examples\draganddrop\dropsite) to examine mime type and content of drag objects created by Outlook.

Best variant!
At first you must know what format has your drag/drop object.

honza
17th June 2007, 11:30
i tried that example.. :crying:
the output of this program was incomplete. FileContents is empty..

when i try to d'n'd attachments of this email, FileContents is the content of the attachment. so this way is ok, but i want to d'n'd whole email, not only attachments.

can you try this example too?

bellow is the screenshot