How to create a QWidget with a HWND as parent?

前端 未结 1 713
无人及你
无人及你 2021-02-14 19:34

With wxWidgets I use the following code:

HWND main_window = ...
...
wxWindow *w = new wxWindow();
wxWindow *window = w->CreateWindowFromHWND(0, (WXHWND) main_win         


        
相关标签:
1条回答
  • 2021-02-14 20:12

    Use the create method of QWidget.

    HWND main_window = ...
    ...
    QWidget *w = new QWidget();
    w->create((WinId)main_window);
    
    0 讨论(0)
提交回复
热议问题