Class: QgsLayoutItemPropertiesDialog¶
- class qgis.gui.QgsLayoutItemPropertiesDialog¶
Bases:
PyQt5.QtWidgets.QDialog
A dialog for configuring properties like the size and position of layout items.
This is usually used only when constructing new layout items, allowing users to precisely enter their sizes and positions.
New in version 3.0.
QgsLayoutItemPropertiesDialog(parent: QWidget = None, flags: Union[Qt.WindowFlags, Qt.WindowType] = Qt.WindowFlags()) Constructor for
QgsLayoutNewItemPropertiesDialog
.Methods
Returns the current item position defined by the dialog.
Returns the item size defined by the dialog.
Returns the page number for the new item.
Returns the item reference point defined by the dialog.
Sets the item
position
to show in the dialog.Sets the item
size
to show in the dialog.Sets the
layout
associated with the dialog.Sets the item reference
point
defined to show in the dialog.- actionEvent(self, QActionEvent)¶
- changeEvent(self, QEvent)¶
- childEvent(self, QChildEvent)¶
- closeEvent(self, QCloseEvent)¶
- connectNotify(self, QMetaMethod)¶
- contextMenuEvent(self, QContextMenuEvent)¶
- create(self, window: sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)¶
- customEvent(self, QEvent)¶
- destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)¶
- disconnectNotify(self, QMetaMethod)¶
- dragEnterEvent(self, QDragEnterEvent)¶
- dragLeaveEvent(self, QDragLeaveEvent)¶
- dragMoveEvent(self, QDragMoveEvent)¶
- dropEvent(self, QDropEvent)¶
- enterEvent(self, QEvent)¶
- event(self, QEvent) bool ¶
- eventFilter(self, QObject, QEvent) bool ¶
- focusInEvent(self, QFocusEvent)¶
- focusNextChild(self) bool ¶
- focusNextPrevChild(self, bool) bool ¶
- focusOutEvent(self, QFocusEvent)¶
- focusPreviousChild(self) bool ¶
- hideEvent(self, QHideEvent)¶
- initPainter(self, QPainter)¶
- inputMethodEvent(self, QInputMethodEvent)¶
- isSignalConnected(self, QMetaMethod) bool ¶
- itemPosition(self) QgsLayoutPoint ¶
Returns the current item position defined by the dialog.
See also
- Return type
- itemSize(self) QgsLayoutSize ¶
Returns the item size defined by the dialog.
See also
- Return type
- keyPressEvent(self, QKeyEvent)¶
- keyReleaseEvent(self, QKeyEvent)¶
- leaveEvent(self, QEvent)¶
- metric(self, QPaintDevice.PaintDeviceMetric) int ¶
- mouseDoubleClickEvent(self, QMouseEvent)¶
- mouseMoveEvent(self, QMouseEvent)¶
- mousePressEvent(self, QMouseEvent)¶
- mouseReleaseEvent(self, QMouseEvent)¶
- moveEvent(self, QMoveEvent)¶
- nativeEvent(self, Union[QByteArray, bytes, bytearray], sip.voidptr) Tuple[bool, int] ¶
- page(self) int ¶
Returns the page number for the new item.
- Return type
int
- paintEvent(self, QPaintEvent)¶
- receivers(self, PYQT_SIGNAL) int ¶
- referencePoint(self) QgsLayoutItem.ReferencePoint ¶
Returns the item reference point defined by the dialog.
See also
- Return type
- resizeEvent(self, QResizeEvent)¶
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setItemPosition(self, position: QgsLayoutPoint)¶
Sets the item
position
to show in the dialog.See also
- Parameters
position (QgsLayoutPoint) –
- setItemSize(self, size: QgsLayoutSize)¶
Sets the item
size
to show in the dialog.See also
- Parameters
size (QgsLayoutSize) –
- setLayout(self, layout: QgsLayout)¶
Sets the
layout
associated with the dialog. This allows the dialog to retrieve properties from the layout and perform tasks like automatic conversion of units.- Parameters
layout (QgsLayout) –
- setReferencePoint(self, point: QgsLayoutItem.ReferencePoint)¶
Sets the item reference
point
defined to show in the dialog.See also
- Parameters
point (QgsLayoutItem.ReferencePoint) –
- showEvent(self, QShowEvent)¶
- tabletEvent(self, QTabletEvent)¶
- timerEvent(self, QTimerEvent)¶
- updateMicroFocus(self)¶
- wheelEvent(self, QWheelEvent)¶