QGraphicsObject Class ReferenceThe QGraphicsObject class provides a base class for all graphics items that require signals, slots and properties. Далее... #include <QGraphicsObject> Inherits: QObject and QGraphicsItem. Inherited by: QDeclarativeItem, QGraphicsSvgItem, QGraphicsTextItem, and QGraphicsWidget. Этот класс был введён в Qt 4.6. Свойства
Открытые функции
Сигналы
Защищённые слоты
Дополнительные унаследованные члены
Подробное описаниеThe QGraphicsObject class provides a base class for all graphics items that require signals, slots and properties. The class extends a QGraphicsItem with QObject's signal/slot and property mechanisms. It maps many of QGraphicsItem's basic setters and getters to properties and adds notification signals for many of them. Родители и детиEach graphics object can be constructed with a parent item. This ensures that the item will be destroyed when its parent item is destroyed. Although QGraphicsObject inherits from both QObject and QGraphicsItem, you should use the functions provided by QGraphicsItem, not QObject, to manage the relationships between parent and child items. The relationships between items can be explored using the parentItem() and childItems() functions. In the hierarchy of items in a scene, the parentObject() and parentWidget() functions are the equivalent of the QWidget::parent() and QWidget::parentWidget() functions for QWidget subclasses. See also QGraphicsWidget. Описание свойствeffect : QGraphicsEffect * constThis property holds the effect attached to this item. Это свойство было введено в Qt 4.7. See also QGraphicsItem::setGraphicsEffect() and QGraphicsItem::graphicsEffect(). enabled : const boolЭто свойство определяет является ли элемент разблокированным или нет. Это свойство объявлено в QGraphicsItem. По умолчанию это свойство равно true. Уведомляющий сигнал:
See also QGraphicsItem::isEnabled(), QGraphicsItem::setEnabled(), and QGraphicsObject::enabledChanged(). opacity : const qrealThis property holds the opacity of the item. Уведомляющий сигнал:
See also QGraphicsItem::setOpacity() and QGraphicsItem::opacity(). parent : QGraphicsObject * constThis property holds the parent of the item. Note: The item's parent is set independently of the parent object returned by QObject::parent(). Уведомляющий сигнал:
See also QGraphicsItem::setParentItem() and QGraphicsItem::parentObject(). pos : const QPointFThis property holds the position of the item. Describes the items position. See also QGraphicsItem::setPos() and QGraphicsItem::pos(). rotation : const qrealThis property holds the rotation of the item in degrees. This specifies how many degrees to rotate the item around its transformOrigin. The default rotation is 0 degrees (i.e. not rotated at all). Уведомляющий сигнал:
scale : const qrealThis property holds the scale of the item. A scale of less than 1 means the item will be displayed smaller than normal, and a scale of greater than 1 means the item will be displayed larger than normal. A negative scale means the item will be mirrored. By default, items are displayed at a scale of 1 (i.e. at their normal size). Scaling is from the item's transformOrigin. Уведомляющий сигнал:
transformOriginPoint : const QPointFThis property holds the transformation origin. This property sets a specific point in the items coordiante system as the origin for scale and rotation. See also scale, rotation, and QGraphicsItem::transformOriginPoint(). visible : const boolЭто свойство определяет является ли элемент видимым или нет. Это свойство объявлено в QGraphicsItem. По умолчанию это свойство равно true. Уведомляющий сигнал:
See also QGraphicsItem::isVisible(), QGraphicsItem::setVisible(), and visibleChanged(). x : const qrealThis property holds the x position of the item. Describes the items x position. Уведомляющий сигнал:
See also QGraphicsItem::setX(), setPos(), and xChanged(). y : const qrealThis property holds the y position of the item. Describes the items y position. Уведомляющий сигнал:
See also QGraphicsItem::setY(), setPos(), and yChanged(). z : const qrealThis property holds the z value of the item. Describes the items z value. Уведомляющий сигнал:
See also QGraphicsItem::setZValue(), zValue(), and zChanged(). Описание функций-членовQGraphicsObject::QGraphicsObject ( QGraphicsItem * parent = 0 )Constructs a QGraphicsObject with parent. void QGraphicsObject::enabledChanged () [signal]This signal gets emitted whenever the item get's enabled or disabled. Смотрите также isEnabled(). void QGraphicsObject::grabGesture ( Qt::GestureType gesture, Qt::GestureFlags flags = Qt::GestureFlags() )Subscribes the graphics object to the given gesture with specific flags. See also ungrabGesture() and QGestureEvent. void QGraphicsObject::opacityChanged () [signal]This signal gets emitted whenever the opacity of the item changes See also QGraphicsItem::opacity(). void QGraphicsObject::parentChanged () [signal]This signal gets emitted whenever the parent of the item changes void QGraphicsObject::rotationChanged () [signal]This signal gets emitted whenever the roation of the item changes. void QGraphicsObject::scaleChanged () [signal]This signal is emitted when the scale of the item changes. void QGraphicsObject::ungrabGesture ( Qt::GestureType gesture )Unsubscribes the graphics object from the given gesture. See also grabGesture() and QGestureEvent. void QGraphicsObject::updateMicroFocus () [protected slot]Обновляет микрофокус элемента. This is slot for convenience. Эта функция была введена в Qt 4.7. Смотрите также QInputContext. void QGraphicsObject::visibleChanged () [signal]This signal gets emitted whenever the visibility of the item changes See also visible. void QGraphicsObject::xChanged () [signal]This signal gets emitted whenever the x position of the item changes See also pos(). void QGraphicsObject::yChanged () [signal]This signal gets emitted whenever the y position of the item changes. See also pos(). void QGraphicsObject::zChanged () [signal]This signal gets emitted whenever the z value of the item changes. See also pos(). |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |