Inherits QBoxLayout.
The QWidget argument, if not None, causes self to be owned by Qt instead of PyQt.