How to get QDockArea size?
-
05-06-2021 - |
Question
I want to get the QDockArea
size when the user changes its size by dragging the Splitter. Is there any signal
that emits when QDockArea
size changes ? I'm using Qt 3.3.6 (please don't suggest to change the Qt version).
Solution
You could:
Create a subclass of QDockArea
and reimplement the resizeEvent
function to emit a signal or directly call into some sort of manager object.
Alternatively:
How about using the manager object as an eventFilter
on your QDockArea
s and checking for QEvent::Resize
?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow