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. Passing a Windows handle a widget
Forum Updated to NodeBB v4.3 + New Features

Passing a Windows handle a widget

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 2.6k 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.
  • T Offline
    T Offline
    theunsheydenrych
    wrote on last edited by
    #1

    HI
    I am looking at software (Quantum GIS) at the moment, a GIS renderer that renders to a QWidget, and i would like it to render to a panel on a delphi window.

    Is it possible to pass the panel's handle (a windows HDC handle) to a QWidget during initialization time , and that all stuff that is rendered to the widget will then render in the Delphi application's panel?
    This is all in windows xp, and will later have to run on windows7 as well.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      Nope.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        theunsheydenrych
        wrote on last edited by
        #3

        Not even when i pass the HDC (windows handle) through with the help of a dll?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          No, AFAIK at least, Qt can not draw on foreign surfaces. I have not come across a method in QWidget that would suggest that you can pass in a window handle to make Qt work and draw on that.

          1 Reply Last reply
          0
          • P Offline
            P Offline
            p-himik
            wrote on last edited by
            #5

            As i know you can render QWidget as a bitmap and then render this bitmap on another window.

            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