Class: QgsLayoutItemPropertiesDialog

class qgis.gui.QgsLayoutItemPropertiesDialog(parent: QWidget = None, flags: Union[Qt.WindowFlags, Qt.WindowType] = 0)

Bases: PyQt5.QtWidgets.QDialog

Constructor for QgsLayoutNewItemPropertiesDialog.

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.

Parameters
  • parent (QWidget = None) –

  • flags

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(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()
keyReleaseEvent()
leaveEvent()
metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
page(self) → int

Returns the page number for the new item.

Return type

int

paintEvent()
receivers()
referencePoint(self) → QgsLayoutItem.ReferencePoint

Returns the item reference point defined by the dialog.

Return type

QgsLayoutItem.ReferencePoint

resizeEvent()
sender()
senderSignalIndex()
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()
showEvent()
tabletEvent()
timerEvent()
updateMicroFocus()
wheelEvent()