HWND on Win32 API to Qt widget



  • How to convert HWND on Win32 API to Qt widget?
    I know that I have to use QWidget::winId().
    but I don't know how to write it
    Please give me an example.
    Thanks



  • If you are asking how to find the QWidget which has HWND x,
    @
    QWidget* theWidget = QWidget::find((WId)x);
    @

    If you are asking how to find the HWND associated with a QWidget x,
    @
    HWND foo = x.effectiveWinId ();
    @


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.