PyPrintLayout.GKPrintLayoutItem

class GKPrintLayoutItem

Inherited by: GKPrintLayoutItemText, GKPrintLayoutItemTS, GKPrintLayoutItemScale, GKPrintLayoutItemNodeView, GKPrintLayoutItemMap2D, GKPrintLayoutItemLines, GKPrintLayoutItemLegend, GKPrintLayoutItemImage

Synopsis

Methods

Virtual methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

Abstract Class implemented by the differents items to be drawn. The positons and the size of the elements are relative to the PageSize from his owner: GKPrintLayout

UnknownCommand GKPrintLayout

__init__(x, y, width, height)
Parameters:
  • x – float

  • y – float

  • width – float

  • height – float

clone()
Return type:

GKPrintLayoutItem

drawFrame()
Return type:

bool

Returns true if set to draw a black frame at the border of the element. False otherwise

See also

setDrawFrame()

getBBox()
Return type:

GKBBox

getBBoxInPage()
Return type:

GKBBox

getBckColor()
Return type:

QColor

getHeight()
Return type:

float

getLayout()
Return type:

GKPrintLayout

getPosInPage()
Return type:

QPointF

The relative (to the layout) position of this item.

getSizeInPage()
Return type:

QSizeF

getSizeInPageInMM()
Return type:

QSizeF

getTick()
Return type:

int

abstractmethod getType()
Return type:

str

getWidth()
Return type:

float

getX()
Return type:

float

getY()
Return type:

float

isLocked()
Return type:

bool

isSelected()
Return type:

bool

isSimpleDrawDisabled()
Return type:

bool

setBckColor(color)
Parameters:

colorQColor

setDisableSimpleDrawing(disableSimpleDraw)
Parameters:

disableSimpleDraw – bool

setDrawFrame(value)
Parameters:

value – bool

Use true to draw a black frame at the border of the element. False otherwise

See also

drawFrame()

setHeight(arg__1)
Parameters:

arg__1 – float

Return type:

bool

setLayout(_layout)
Parameters:

_layoutGKPrintLayout

setLocked(locked)
Parameters:

locked – bool

setSelected(s)
Parameters:

s – bool

setUseBckColor(value)
Parameters:

value – bool

setWidth(arg__1)
Parameters:

arg__1 – float

Return type:

bool

setX(x)
Parameters:

x – float

Return type:

bool

setY(y)
Parameters:

y – float

Return type:

bool

useBckColor()
Return type:

bool