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

actionEvent

changeEvent

childEvent

closeEvent

connectNotify

contextMenuEvent

create

customEvent

destroy

disconnectNotify

dragEnterEvent

dragLeaveEvent

dragMoveEvent

dropEvent

enterEvent

event

eventFilter

focusInEvent

focusNextChild

focusNextPrevChild

focusOutEvent

focusPreviousChild

hideEvent

initPainter

inputMethodEvent

isSignalConnected

itemPosition

Returns the current item position defined by the dialog.

itemSize

Returns the item size defined by the dialog.

keyPressEvent

keyReleaseEvent

leaveEvent

metric

mouseDoubleClickEvent

mouseMoveEvent

mousePressEvent

mouseReleaseEvent

moveEvent

nativeEvent

page

Returns the page number for the new item.

paintEvent

receivers

referencePoint

Returns the item reference point defined by the dialog.

resizeEvent

sender

senderSignalIndex

setItemPosition

Sets the item position to show in the dialog.

setItemSize

Sets the item size to show in the dialog.

setLayout

Sets the layout associated with the dialog.

setReferencePoint

Sets the item reference point defined to show in the dialog.

sharedPainter

showEvent

tabletEvent

timerEvent

updateMicroFocus

wheelEvent

actionEvent(self, QActionEvent)
changeEvent(self, QEvent)
childEvent(self, QChildEvent)
closeEvent(self, QCloseEvent)
connectNotify(self, QMetaMethod)
contextMenuEvent(self, QContextMenuEvent)
create(self, window: PyQt5.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.

Return type:

QgsLayoutPoint

itemSize(self) QgsLayoutSize

Returns the item size defined by the dialog.

See also

setItemSize()

Return type:

QgsLayoutSize

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], PyQt5.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.

Return type:

QgsLayoutItem.ReferencePoint

resizeEvent(self, QResizeEvent)
sender(self) QObject
senderSignalIndex(self) int
setItemPosition(self, position: QgsLayoutPoint)

Sets the item position to show in the dialog.

See also

itemPosition()

Parameters:

position (QgsLayoutPoint) –

setItemSize(self, size: QgsLayoutSize)

Sets the item size to show in the dialog.

See also

itemSize()

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

referencePoint()

Parameters:

point (QgsLayoutItem.ReferencePoint) –

sharedPainter(self) QPainter
showEvent(self, QShowEvent)
tabletEvent(self, QTabletEvent)
timerEvent(self, QTimerEvent)
updateMicroFocus(self)
wheelEvent(self, QWheelEvent)