Make Reparent() work for wxFrame in wxQt
Use the correct parent window, i.e. the one of the central widget and not of the frame itself.
This commit is contained in:
@@ -437,7 +437,7 @@ bool wxWindowQt::Reparent( wxWindowBase *parent )
|
||||
if ( !wxWindowBase::Reparent( parent ))
|
||||
return false;
|
||||
|
||||
QtReparent( GetHandle(), parent->GetHandle() );
|
||||
QtReparent( GetHandle(), static_cast<wxWindow*>(parent)->QtGetParentWidget() );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user