|
|||||||||
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 (i.e., restricts) its own painting to inside its shape. |
static QGraphicsItem.GraphicsItemFlag |
ItemIgnoresTransformations
The item ignores inherited transformations (i.e., its position is still relative 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.e., it is an input item). |
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
paintEvent()
function cannot draw outside its shape. For complex shapes, this function can be expensive. It is disabled by default. This behavior is enforced by 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 |