PyPrintLayout.GKPrintLayoutItemText

class GKPrintLayoutItemText

Text box with options for tagged text item in a print layout.

Inheritance diagram of PyPrintLayout.GKPrintLayoutItemText

Synopsis

Methods

Static functions

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

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

  • y – float

  • width – float

  • height – float

getAlignment()
Return type:

Combination of AlignmentFlag

static getClassType()
Return type:

str

getColor()
Return type:

QColor

getFont()
Return type:

QFont

getFontSize()
Return type:

int

getText()
Return type:

str

hasWordWrap()
Return type:

bool

setAlignment(a)
Parameters:

a – Combination of AlignmentFlag

setColor(c)
Parameters:

cQColor

setFont(f)
Parameters:

fQFont

setFontSize(z)
Parameters:

z – int

setText(t)
Parameters:

t – str

setWordWrap(ww)
Parameters:

ww – bool