DataWidgetMapper
Base classes
| Name | Children | Inherits |
|---|---|---|
| ObjectMixin prettyqt.core.object |
||
| QDataWidgetMapper PySide6.QtWidgets QDataWidgetMapper(self, /, parent: PySide6.QtCore.QObject | None \= None, *, currentIndex: int | None \= None, orientation: PySide6.QtCore.Qt.Orientation | None \= None, submitPolicy: PySide6.QtWidgets.QDataWidgetMapper.SubmitPolicy | None \= None) -> None |
â‹” Inheritance diagram
graph TD
3474017354["widgets.DataWidgetMapper"]
3227531497["core.ObjectMixin"]
2751680898["builtins.object"]
957334295["QtWidgets.QDataWidgetMapper"]
3984060476["QtCore.QObject"]
37984305["Shiboken.Object"]
3227531497 --> 3474017354
2751680898 --> 3227531497
957334295 --> 3474017354
3984060476 --> 957334295
37984305 --> 3984060476
2751680898 --> 37984305
🛈 DocStrings
Bases: ObjectMixin, QDataWidgetMapper
Mapping between a section of a data model to widgets.
Source code in prettyqt/widgets/datawidgetmapper.py
get_orientation() -> constants.OrientationStr
get_submit_policy() -> SubmitPolicyStr
set_orientation(orientation: constants.OrientationStr | constants.Orientation)
Set the orientation of the data widget mapper.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
orientation
|
OrientationStr | Orientation
|
orientation for the data widget mapper |
required |
Source code in prettyqt/widgets/datawidgetmapper.py
set_submit_policy(policy: SubmitPolicyStr | widgets.QDataWidgetMapper.SubmitPolicy)
Set the submit policy of the mapper.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
policy
|
SubmitPolicyStr | SubmitPolicy
|
submit_policy for the data widget mapper |
required |