Qt HWND转QWidget 1 HWND m_hWnd; 2 QWidget *newWidget; 3 newWidget = QWidget::find((WId)m_hWnd); //需要用(WID)