Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Use COM objects from non-gui thread (Qt5.1)

    General and Desktop
    1
    2
    901
    Loading More Posts
    • 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.
    • O
      ObukhovAlexey last edited by

      Main task: Application need use COM objects from non-gui thread.

      With Qt 4.8.4 and older all nice - cppdump generate wrapper, replace QAxWidget -> QAxObject and QWidget -> QObject. All working properly.

      But after migrate to Qt 5.1 cppdump generating more complex code with integrated static metasystem tables. Trick with replacing base class not working.
      I try to generate wrapper with parameters -nometaobject -compat - take nagative rusult because COM objects not using IDispatch interface.

      Who faced such a problem may have a solution?

      1 Reply Last reply Reply Quote 0
      • O
        ObukhovAlexey last edited by

        I solved this problem. Just patched cppdump adding flag banning use QAxWidget.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post