private QLabel createPixmapLabel() { QLabel label = new QLabel(); label.setEnabled(false); label.setAlignment(Qt.AlignmentFlag.AlignCenter); label.setFrameShape(QFrame.Shape.Box); label.setSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Expanding); label.setBackgroundRole(QPalette.ColorRole.Base); label.setAutoFillBackground(true); label.setMinimumSize(132, 132); return label; }
public QDockWidgetLocationChangedBug() { resize(640, 400); final QLabel label = new QLabel("Central widget"); label.setAlignment(AlignmentFlag.AlignCenter); label.setFrameShadow(Shadow.Plain); label.setFrameShape(Shape.Panel); setCentralWidget(label); addDockWidget(DockWidgetArea.LeftDockWidgetArea, new MyBadDockWidget()); addDockWidget(DockWidgetArea.RightDockWidgetArea, new MyGoodDockWidget()); show(); }