I am using dock widgets without a central widget (setCentralWidget(Q_NULLPTR)
) for QOwnNotes (C++, Qt5), because you can have more complex layouts without a central widget.
My problem is that if the user resizes the application main window some more or less random dock widgets will be resized. It would be more desirable to set one specific dock widget to be resized (like the center widget would behave).
Example of the current behavior:
The left area gets resized, it would be much better if the right area (note preview in this case) would get resized.
Is there a way to force a QDockWidget
to behave like a central widget when it comes to resizing the main window without actually using a central widget?
I already tried to use sizePolicy.setHorizontalPolicy
, but it didn't get me there...