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. How to call.NET dll from Qt Project
Qt 6.11 is out! See what's new in the release blog

How to call.NET dll from Qt Project

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

    I am quite new to Qt development. Can anyone help on the steps required to call a C# dll from Qt project (Simple QtBrowserPlugin for firefox and chrome)? Is that possible?

    I have seen some samples on ActiveQt. As far as i understand, ActiveQt implementation will compel me to use Internet Explorer. I want to make the plug-in for Firefox and Chrome. Is my understanding correct?

    Any help will be appreciated. Thanks

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      Qt is C++, and from C++ you can call any C++ dll (build with the same compiler), any COM stuff (e.g. with activeQt) or any dll with a C-style API.

      C# has a complete own interface structure. So you can't call it directly. If you wrap the C# stuff inside a COM interface, you can call it via ActiveQt.

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • B Offline
        B Offline
        balaraman
        wrote on last edited by
        #3

        Hi Gerolf,

        Thanks a lot for the response.

        If i were to wrap the C# stuff inside a COM interface and call it through ActiveQt, would i not require Internet Explorer, considering that i am building a Qt Browser plug-in?

        I do not want the plug-in to depend on IE? Need to work in Firefox and Chrome. Is there any path out?

        Thanks in advance.

        Bala

        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