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. Hosting a WinForm in a Qt Widget
Forum Updated to NodeBB v4.3 + New Features

Hosting a WinForm in a Qt Widget

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.4k 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.
  • X Offline
    X Offline
    xMrAx
    wrote on last edited by
    #1

    I am attempting to host a WinForm as a QtWidget. I have access to a Dll hosting the WinForm. Using clr I can host the WinForm is a QFrame or QWidget using HWND and setting the parent window. However, problems start to arise when attempting to do custom controls, re-sizing, etc. I read that QtWinForms and by extension QtControlHost would easily host a WinFrom in Qt. However, this library has been removed from Qt. After further research it appears I need to use ActiveQt container and server to properly host a Winform. Unfortunately, there are plenty of examples of hosting a QtWidget in a WinForm, but not vice versa using ActiveQt. I was wondering if anyone had either solved a similar issue or can point me to some documentation or examples showing how to achieve above. I can clr to access the C# class deriving from the ElementHost object of the form, but can't seem to figure out how I would use ActiveQt to display the form. Thanks for the help.

    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