|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Enum
com.trolltech.qt.gui.QGraphicsItem.GraphicsItemFlag
public static final class QGraphicsItem.GraphicsItemFlag
This enum describes different flags that you can set on an item to toggle different features in the item's behavior.
All flags are disabled by default. This flag is useful for keeping text label items horizontal and unscaled, so they will still be readable if the view is transformed. When set, the item's view geometry and scene geometry will be maintained separately. You must call deviceTransform()
to map coordinates and detect collisions in the view. By default, this flag is disabled. This flag was introduced in Qt 4.3. Note: With this flag set you can still scale the item itself, and that scale transformation will influence the item's children.
Field Summary | |
---|---|
static QGraphicsItem.GraphicsItemFlag |
ItemClipsChildrenToShape
The item clips the painting of all its descendants to its own shape. |
static QGraphicsItem.GraphicsItemFlag |
ItemClipsToShape
The item clips (i. |
static QGraphicsItem.GraphicsItemFlag |
ItemIgnoresTransformations
The item ignores inherited transformations (i.e., its position is still anchored to its parent, but the parent or view rotation, zoom or shear transformations are ignored). |
static QGraphicsItem.GraphicsItemFlag |
ItemIsFocusable
The item supports keyboard input focus (i. |
static QGraphicsItem.GraphicsItemFlag |
ItemIsMovable
The item supports interactive movement using the mouse. |
static QGraphicsItem.GraphicsItemFlag |
ItemIsSelectable
The item supports selection. |
Method Summary | |
---|---|
static QGraphicsItem.GraphicsItemFlags |
createQFlags(QGraphicsItem.GraphicsItemFlag[] values)
|
static QGraphicsItem.GraphicsItemFlag |
resolve(int value)
|
int |
value()
This function should return an integer value for the enum values of the enumeration that implements this interface. |
static QGraphicsItem.GraphicsItemFlag |
valueOf(java.lang.String name)
|
static QGraphicsItem.GraphicsItemFlag[] |
values()
|
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final QGraphicsItem.GraphicsItemFlag ItemIsMovable
QGraphicsItem
's mouse event handlers.
public static final QGraphicsItem.GraphicsItemFlag ItemIsSelectable
setSelected()
to toggle selection for the item. It will also let the item be selected automatically as a result of calling QGraphicsScene::setSelectionArea()
, by clicking on an item, or by using rubber band selection in QGraphicsView
.
public static final QGraphicsItem.GraphicsItemFlag ItemIsFocusable
QGraphicsItem::keyPressEvent()
and QGraphicsItem::keyReleaseEvent()
.
public static final QGraphicsItem.GraphicsItemFlag ItemClipsToShape
QGraphicsView::drawItems()
or QGraphicsScene::drawItems()
. This flag was introduced in Qt 4.3.
public static final QGraphicsItem.GraphicsItemFlag ItemClipsChildrenToShape
QGraphicsView::drawItems()
or QGraphicsScene::drawItems()
. This flag was introduced in Qt 4.3.
public static final QGraphicsItem.GraphicsItemFlag ItemIgnoresTransformations
Method Detail |
---|
public static QGraphicsItem.GraphicsItemFlag[] values()
public static QGraphicsItem.GraphicsItemFlag valueOf(java.lang.String name)
public int value()
value
in interface QtEnumerator
public static QGraphicsItem.GraphicsItemFlags createQFlags(QGraphicsItem.GraphicsItemFlag[] values)
public static QGraphicsItem.GraphicsItemFlag resolve(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |