|
|||||||||
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.
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 to its own shape. |
static QGraphicsItem.GraphicsItemFlag |
ItemDoesntPropagateOpacityToChildren
The item doesn't propagate its opacity to its children. |
static QGraphicsItem.GraphicsItemFlag |
ItemIgnoresParentOpacity
The item ignores its parent's opacity. |
static QGraphicsItem.GraphicsItemFlag |
ItemIgnoresTransformations
The item ignores inherited transformations (i. |
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. |
static QGraphicsItem.GraphicsItemFlag |
ItemStacksBehindParent
The item is stacked behind its parent. |
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
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.
public static final QGraphicsItem.GraphicsItemFlag ItemIgnoresParentOpacity
public static final QGraphicsItem.GraphicsItemFlag ItemDoesntPropagateOpacityToChildren
public static final QGraphicsItem.GraphicsItemFlag ItemStacksBehindParent
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 |