Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Painting QT5 window on Win32 HWND
Qt 6.11 is out! See what's new in the release blog

Painting QT5 window on Win32 HWND

Scheduled Pinned Locked Moved 3rd Party Software
2 Posts 2 Posters 2.1k 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.
  • F Offline
    F Offline
    FabianSchmitt
    wrote on last edited by
    #1

    Hello,

    I want to embed a QT5 window into a Win32 application. For this, I have a QT dll which exports a function for painting a QWidget and a Win32 applicaion with multiple windows which loads the DLL. I want to pass the HWND of such a window to the QT-DLL and force it painting the widget on it.

    In QT4, there seems to have "QT Solutions" existed which offered QWinWidget which seemed exactly to be what I need. Is what I want to achieve possible in QT5 and if so, what do I need to do?

    Thanks
    Fabian

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      In Qt 5 you have the qtwinextras repository for windows platform specific code like QWinWidget, you could try to see if you find it there.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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