Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Getting events from COM objects
Forum Updated to NodeBB v4.3 + New Features

Getting events from COM objects

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 652 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rizokuri
    wrote on last edited by
    #1

    Hi,

    I don't know much about windows programming and I'm trying to get events from the InkCollector COM class ("http://msdn.microsoft.com/en-us/library/windows/desktop/ms695519(v=vs.85).aspx":http://msdn.microsoft.com/en-us/library/windows/desktop/ms695519.aspx)

    I tried without going through Qt, but it seems like the events are blocked somewhere in Qt, so I tried by using QAxObject this way:

    @
    LPOLESTR clsid;
    StringFromCLSID(CLSID_InkCollector, &clsid);

    QAxObject *comObj = new QAxObject( QString::fromWCharArray(clsid), this );

    connect( comObj, SIGNAL(MouseDown(InkMouseButton, InkShiftKeyModifierFlags, long, long, VARIANT_BOOL* )), handler, SLOT(MouseDown(InkMouseButton, InkShiftKeyModifierFlags, long, long ,VARIANT_BOOL *)) );
    @

    Unfortunately I get the error "No such signal QAxObject::MouseDown[...]" at runtime.

    Is there something I'm missing here?

    Thank you.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved