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:
@@ -215,6 +215,12 @@ protected:
|
||||
virtual bool DoPopupMenu(wxMenu *menu, int x, int y) wxOVERRIDE;
|
||||
#endif // wxUSE_MENUS
|
||||
|
||||
// Return the parent to use for children being reparented to us: this is
|
||||
// overridden in wxFrame to use its central widget rather than the frame
|
||||
// itself.
|
||||
virtual QWidget* QtGetParentWidget() const { return GetHandle(); }
|
||||
|
||||
|
||||
QWidget *m_qtWindow;
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user