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 |
set the pen to use for drawing the border of the frame
|
slot |
set 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