MeVisLab Scripting Reference
|
Inherits QGraphicsWidget.
Public Slots | |
Scripting | |
| |
void | setFramePixmap (const QPixmap &pixmap, const QMargins &margins) |
void | setFillGradient (const QGradient &gradient) |
void | setFillVerticalLinearGradient (const QColor &startColor, const QColor &endColor) |
void | setFillHorizontalLinearGradient (const QColor &startColor, const QColor &endColor) |
void | setFillColor (const QColor &color) |
void | setBorderPen (const QPen &pen) |
void | setBorderPen (const QColor &color, float width) |
void | setRoundedBorder (qreal xRadius, qreal yRadius) |
void | setContentsMargins (qreal left, qreal top, qreal right, qreal bottom) |
Frame graphics view item draws a background frame around/below a given child item.
|
slot |
Sets the pen to use for drawing the border of the frame.
|
slot |
Sets the pen to use for drawing the border of the frame.
|
slot |
Sets the margins for the content widget, the default is 11 pixels in all directions.
|
slot |
Sets the fill color.
|
slot |
Sets the frame fill gradient that should be drawn.
Example for creating a linear vertical gradient using PythonQt:
|
slot |
Sets the frame fill gradient as a horizontal linear gradient with start and end color.
|
slot |
Sets the frame fill gradient as a vertical linear gradient with start and end color.
|
slot |
Draws the given pixmap as streched frame, using qDrawBorderPixmap with 9 segments defined by given margins.
|
slot |
Sets to draw a rounded border (using absolute pixel radii), default is to not draw rounded corners.