this was already discussed & solved in another post
subclass a QFrame or QWidget, define the sizeHint() Method, arrange your Log inside this QWidget/QFrame and set a proper layout.
now just use QDockWidgets addWidget() Method to put the subclassed QWidget/QFrame inside.
now your size constrains should work properly.
Bookmarks