Thanks for the response! Also if I want to trigger an event would all I have to do be something like this:
QEvent reParentEvent
(QEvent::LayoutRequest);
// Widget layout needs to be redone - Type 76
QEvent reParentEvent(QEvent::LayoutRequest); // Widget layout needs to be redone - Type 76
QApplication::sendEvent(this, &reParentEvent);
To copy to clipboard, switch view to plain text mode
Or is there something more to send because so far I haven't been able to make the fix and I'm not sure if I haven't gotten the correct event (there's 3 likely ones, but I may be wrong as there's a lot of events being passed) or if I'm not triggering the event properly.
Added after 39 minutes:
Nevermind, I was triggering it right. It turns out it was a QDockWidget event and not a QMainWindow event that I needed to trigger though. For anyone who comes up with a similar problem in the future I solved it by putting this in my reimplemented dropEvent function after I reparented the QDockWidget:
QEvent reParentEvent1
(QEvent::MouseMove);
// Mouse move (QMouseEvent) - 5
QEvent reParentEvent1(QEvent::MouseMove); // Mouse move (QMouseEvent) - 5
QApplication::sendEvent(child, &reParentEvent1);
To copy to clipboard, switch view to plain text mode
That allowed the dock widget to immediately go to letting the user place its new child widget in the dock.
Thanks for the help!
Bookmarks