Results 1 to 3 of 3

Thread: Com objects and Events

  1. #1
    Join Date
    Oct 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Com objects and Events

    Hello,

    I have a Question about the QEvent class. I'm trying to catch a powerpoint event, like SlideShowNextSlide Event (http://msdn.microsoft.com/en-us/libr...ice.12%29.aspx). On the Qt Reference (ActiveQt) it says that it works!

    Is it possible? and when yes, how can i do it?
    I searched all the way in the Internet but i didn't found something that helps me out.

    i appreciate your help!

    greets Rosch

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Com objects and Events


  3. #3
    Join Date
    Oct 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Question Re: Com objects and Events

    Hi all,
    Thanks for the reply!
    I tried to do so like it says in the Example. All worked fine except for the Event connection with Signals & Slots. After looking into to the generated MSPPT.ccp (dumpcpp) i find out that all Event from the Application Object are simply not there!
    I've got some snippet here.
    First the generate File from the outlook example:
    Qt Code:
    1. static const char *qt_meta_stringdata_Outlook__MailItem() {
    2. static const char stringdata0[] = {
    3. "Outlook::MailItem\0"
    4. "Event Interface 1\0ItemEvents\0Event Interface 2\0ItemEvents_10\0Interface 0\0_MailItem\0"
    5. "AttachmentAdd(Attachment*)\0Attachment\0\0\0AttachmentRead(Attachment*)\0Attachment\0\0\0AttachmentRemove(Attachment*)\0Attachment\0"
    6. "\0\0BeforeAttachmentAdd(Attachment*,bool&)\0Attachment,Cancel\0\0\0BeforeAttachmentPreview(Attachment*,bool&)\0Attachment,Cancel
    To copy to clipboard, switch view to plain text mode 


    As we can see, the event like AttachmentAdd(..) are inside this class but
    Qt Code:
    1. static const char *qt_meta_stringdata_PowerPoint__Application() {
    2. static const char stringdata0[] = {
    3. "PowerPoint::Application\0"
    4. "Event Interface 1\0EApplication\0Interface 0\0_Application\0"
    5. "exception(int,QString,QString,QString)\0code,source,disc,help\0\0\0propertyChanged(QString)\0name\0\0\0signal(QString,int,void*)\0name,argc,argv\0\0\0"
    6. "Activate()\0"
    7. "\0\0\0FileDialog(Office::MsoFileDialogType)\0Type\0Office::FileDialog*\0\0GetOptionFlag(int)\0Option\0bool\0\0GetOptionFlag(int,bool)\0Option,Persist\0bool\0\0Help()\0\0\0\0Help(QString)\0HelpFile\0\0\0Help(QString,int)\0HelpFile,ContextID\0"
    8. "\0\0LaunchPubliog(QString)\0SlideLibraryUrl\0\0\0LaunchSendToPPTDialog(QVariant&)\0SlideUrls\0\0\0LaunchSpelling(DocumentWindow*)\0pWindow\0\0\0PPFileDialog(PpFileDialogType)\0Type\0IUnknown*\0\0Quit()\0\0\0\0Run(QString,QVariantList&)\0"
    9. "MacroName,safeArrayOfParams\0QVariant\0\0SetAutomationSecurity(Office::MsoAutomationSecurity)\0AutomationSecurity\0\0\0SetCaption(QString)\0Caption\0\0\0SetDisplayAlerts(PpAlertLevel)\0DisplayAlerts\0\0\0SetDisplayDocumentInformationPanel(bool)\0"
    10. "DisplayDocumentInformationPanel\0\0\0SetDisplayGridLines(Office::MsoTriState)\0DisplayGridLines\0\0\0SetFeatureInstall(Office::MsoFeatureInstall)\0FeatureInstall\0\0\0SetHeight(double)\0Height\0\0\0SetLeft(double)\0Left\0"
    11. "\0\0SetOptionFlag(int,bool)\0Option,State\0\0\0SetOptionFlag(int,bool,bool)\0Option,State,Persist\0\0\0SetPerfMarker(int)\0Marker\0\0\0SetShowStartupDialog(Office::MsoTriState)\0ShowStartupDialog\0\0\0SetShowWindowsInTaskbar(Office::MsoTriState)\0"
    12. "ShowWindowsInTaskbar\0\0\0SetTop(double)\0Top\0\0\0SetVisible(Office::MsoTriState)\0Visible\0\0\0SetWidth(double)\0Width\0\0\0SetWindowState(PpWindowState)\0WindowState\0\0\0"
    13. "Active\0Office::MsoTriState\0ActiveEncryptionSession\0"
    14. "int\0ActivePresentation\0Presentation*\0ActivePrinter\0QString\0ActiveWindow\0DocumentWindow*\0AddIns\0AddIns*\0AnswerWizard\0Office::AnswerWizard*\0Assistance\0Office::IAssistance*\0Assistant\0Office::Assistant*\0AutoCorrect\0"
    15. "AutoCorrect*\0AutomationSecurity\0Office::MsoAutomationSecurity\0Build\0QString\0COMAddIns\0Office::COMAddIns*\0Caption\0QString\0CommandBars\0Office::CommandBars*\0Creator\0int\0DefaultWebOptions\0DefaultWebOptions*\0"
    16. "Dialogs\0IUnknown*\0DisplayAlerts\0PpAlertLevel\0DisplayDocumentInformationPanel\0bool\0DisplayGridLines\0Office::MsoTriState\0FeatureInstall\0Office::MsoFeatureInstall\0FileConverters\0FileConverters*\0FileFind\0Office::IFind*\0"
    17. "FileSearch\0Office::FileSearch*\0HWND\0int\0Height\0double\0LanguageSettings\0Office::LanguageSettings*\0Left\0double\0Marker\0IUnknown*\0MsoDebugOptions\0Office::MsoDebugOptions*\0Name\0QString\0NewPresentation\0Office::NewFile*\0"
    18. "OperatingSystem\0QString\0Options\0Options*\0Path\0QString\0Presentations\0Presentations*\0ProductCode\0QString\0ShowStartupDialog\0Office::MsoTriState\0ShowWindowsInTaskbar\0Office::MsoTriState\0SlideShowWindows\0SlideShowWindows*\0"
    19. "Top\0double\0VBE\0VBIDE::VBE*\0Version\0QString\0Visible\0Office::MsoTriState\0Width\0double\0WindowState\0PpWindowState\0Windows\0DocumentWindows*\0"
    To copy to clipboard, switch view to plain text mode 

    there is no Event like it should be!

    Maybe someone can tell me how i can handle this problem. Maybe i generated the Class wrong

    Qt Code:
    1. TARGET = pptSync
    2. TEMPLATE = app
    3. CONFIG += console qaxContainer
    4. TYPELIBS = $$system(dumpcpp -getfile = {91493440-5A91-11CF-8700-00AA0060263B}
    To copy to clipboard, switch view to plain text mode 

    i really would be pleased for a little help in here

Similar Threads

  1. Replies: 3
    Last Post: 9th January 2010, 15:47
  2. Filtering Events on "black-box" objects
    By sebastian.f in forum Qt Programming
    Replies: 3
    Last Post: 12th June 2009, 08:35
  3. Replies: 1
    Last Post: 21st August 2007, 16:25
  4. Replies: 7
    Last Post: 18th July 2006, 21:33
  5. How to Use Objects
    By raphaelf in forum Newbie
    Replies: 1
    Last Post: 2nd June 2006, 09:59

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.