Subgroup: Layout

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: 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

Signals

Attributes

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.

itemSize(self) → QgsLayoutSize

Returns the item size defined by the dialog.

See also

setItemSize()

keyPressEvent()
keyReleaseEvent()
leaveEvent()
metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
page(self) → int

Returns the page number for the new item.

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

Returns the item reference point defined by the dialog.

resizeEvent()
sender()
senderSignalIndex()
setItemPosition(self, position: QgsLayoutPoint)

Sets the item position to show in the dialog.

See also

itemPosition()

setItemSize(self, size: QgsLayoutSize)

Sets the item size to show in the dialog.

See also

itemSize()

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.

setReferencePoint(self, point: QgsLayoutItem.ReferencePoint)

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

See also

referencePoint()

sharedPainter()
showEvent()
tabletEvent()
timerEvent()
updateMicroFocus()
wheelEvent()