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. QAxObject wrapping a IUIAutomation object
Qt 6.11 is out! See what's new in the release blog

QAxObject wrapping a IUIAutomation object

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.9k 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.
  • S Offline
    S Offline
    silicomancer
    wrote on last edited by
    #1

    Hi all!

    I want to use QAxObject to wrap a IUIAutomation COM object. This first looked easy but the datatypes are currently causing problems. Some of the most common methods of that object use pointer-to-pointer parameters (as return values) like th following one:
    @
    HRESULT FindFirst(
    [in] TreeScope scope,
    [in] IUIAutomationCondition *condition,
    [out, retval] IUIAutomationElement **found
    );
    @
    I would like to call that method (and other similar methods) using dynamicCall() but I found no way of passing that third parameter through QVariant. Also querySubObject() does not work since it only queries objects that are returned by return value, not by parameter.

    Does anyone know how to dynamicCall() such a method?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mlong
      wrote on last edited by
      #2

      Please be sure and wrap code in @ tags! Thanks!

      Software Engineer
      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        silicomancer
        wrote on last edited by
        #3

        Ok. I will do so!

        An regarding the technical issue... no idea? Anyone? If this isn't possible I would be happy about a confirmation so I could write a suggestion.

        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