1. 程式人生 > >QT程式初始化時QDockWidget大小的調整方法

QT程式初始化時QDockWidget大小的調整方法

A QDockWidget acts as a wrapper for its child widget, set with setWidget(). Custom size hints, minimum and maximum sizes and size policies should be implemented in the child widget. QDockWidget will respect them, adjusting its own constraints to include the frame and title. Size constraints should not be set on the QDockWidget itself
, because they change depending on wether it is docked; a docked QDockWidget has no frame and a smaller title bar.