RQVBoxLayout

class pyreaqtive.layouts.rqvboxlayout.RQVBoxLayout(model: pyreaqtive.models.rqlist.RQList, widget: Union[Type[PyQt5.QtWidgets.QWidget], Callable[[pyreaqtive.models.rqmodel.RQModel, pyreaqtive.models.rqlist.RQList], PyQt5.QtWidgets.QWidget]], *args, **kwargs)

Bases: pyreaqtive.layouts.rqboxlayout.RQBoxLayout

Reactive QVBoxLayout

__init__(model: pyreaqtive.models.rqlist.RQList, widget: Union[Type[PyQt5.QtWidgets.QWidget], Callable[[pyreaqtive.models.rqmodel.RQModel, pyreaqtive.models.rqlist.RQList], PyQt5.QtWidgets.QWidget]], *args, **kwargs)

Constructor

Parameters
  • model – RQList representing all the items in the layout

  • widget – QWidget type that represents each item. Can also be a function that accepts the item model and list model as arguments, and returns the widget instance

  • args – arguments to pass to the native pyqt layout

  • **kwargs – arguments to pass to the native pyqt layout

model: RQList

Model linked to the layout

widgets: List[QWidget]

List of current widgets in the layout

_rq_widget_callback: Callable[[RQModel, RQList], QWidget]

Widget callback. For a new model that is insert on the list, must return the new and appropriate widget