Basic Question
Is it possible to manage the resize/drag event of the bar that separates QDockWidgets?
End Goal
I'm trying to provide a way to collapse a QDockWidget to 0 width or height by dragging its resize bar past its minimum size to 0. Since I need to drag past the minimum size, I can't just listen to the widget's resize event as that stops once the minimum resize value is hit.
What I've Got
I have multiple QDockWidgets that are all docked in a main window. Each QDockWidget has a QT provided resize handle. This looks like a QSplitter to me, but when I do a findChildren<QSplitter *>()
on the main window, I get 0 references. When I introspect the object, it appears that there might be a QResizeHandler, but I can't find any documentation about this object and I think it might be a private class.
Alternative Solutions?
I'm open to other suggestions, I know I can pretty easily just add a collapse button to the titlebar, but I'd like to make this draggable if possible. Perhaps I can find a way to disable the minimum resize value and allow the user to just resize to 0?