Provides methods for the creation of QFont
, QColor
, QPen
and QBrush
objects from Font, Color, Pen and Brush instances.
More...
Provides methods for the creation of QFont
, QColor
, QPen
and QBrush
objects from Font, Color, Pen and Brush instances.
For information about QFont
, QColor
, QPen
and QBrush
see [QTDOC].
◆ createQFont()
PyQt5.QtGui.QFont CDPL.Vis.QtBackend.QtObjectFactory.createQFont |
( |
Vis.Font |
font | ) |
|
|
static |
Creates a QFont
object that corresponds to the specified font.
- Parameters
-
- Returns
- A
QFont
object equivalent to font.
◆ createQColor()
PyQt5.QtGui.QColor CDPL.Vis.QtBackend.QtObjectFactory.createQColor |
( |
Vis.Color |
color | ) |
|
|
static |
Creates a QColor
object that corresponds to the specified color.
- Parameters
-
- Returns
- A
QColor
object equivalent to color.
◆ createQPen()
PyQt5.QtGui.QPen CDPL.Vis.QtBackend.QtObjectFactory.createQPen |
( |
Vis.Pen |
pen | ) |
|
|
static |
Creates a QPen
object that corresponds to the specified pen.
- Parameters
-
- Returns
- A
QPen
object equivalent to pen.
◆ createQBrush()
PyQt5.QtGui.QBrush CDPL.Vis.QtBackend.QtObjectFactory.createQBrush |
( |
Vis.Brush |
brush | ) |
|
|
static |
Creates a QBrush
object that corresponds to the specified brush.
- Parameters
-
- Returns
- A
QBrush
object equivalent to brush.
◆ createQPainterPath()
PyQt5.QtGui.QPainterPath CDPL.Vis.QtBackend.QtObjectFactory.createQPainterPath |
( |
Vis.Path2D |
path, |
|
|
PyQt5.QtGui.QPainterPath |
qt_path |
|
) |
| |
|
static |
Creates a QPainterPath
object that corresponds to the specified path.
- Parameters
-
path | The path object. |
qt_path | The QPainterPath object to create. |
- Returns
- The argument qt_path.