# `QGraphicsTextBoxing`

digraph inheritance582378e380 { bgcolor=transparent; rankdir=UD; ratio=compress; size="8.0, 12.0"; "QGraphicsItem" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QGraphicsItem(parent: QGraphicsItem|None = None)"]; "wrapper" -> "QGraphicsItem" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QGraphicsItemGroup" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QGraphicsItemGroup(parent: QGraphicsItem|None = None)"]; "QGraphicsItem" -> "QGraphicsItemGroup" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QGraphicsTextBoxing" [URL="#taurus.qt.qtgui.graphic.QGraphicsTextBoxing",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="Display a text inside a virtual box. Support horizontal and vertical"]; "QGraphicsItemGroup" -> "QGraphicsTextBoxing" [arrowsize=0.5,style="setlinewidth(0.5)"]; "simplewrapper" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "wrapper" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "simplewrapper" -> "wrapper" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

class QGraphicsTextBoxing(parent=None, scene=None)

  Display a text inside a virtual box. Support horizontal and vertical alignment

  Import from `taurus.qt.qtgui.graphic` as:

      from taurus.qt.qtgui.graphic import QGraphicsTextBoxing

  brush()
  paint(self, painter: QPainter | None, option: QStyleOptionGraphicsItem | None, widget: QWidget | None = None)
  pen()
  setAlignment(alignment)
  setBrush(brush)
  setDefaultTextColor(color)
  setFont(font)
  setHtml(html)
  setPen(pen)
  setPlainText(text)
  setRect(x, y, width, height)
  setValidBackground(color)
  toPlainText()