Modify dimension of Qt widget.