[−][src]Struct qt_widgets::QGraphicsSceneHelpEvent
The QGraphicsSceneHelpEvent class provides events when a tooltip is requested.
C++ class: QGraphicsSceneHelpEvent
.
The QGraphicsSceneHelpEvent class provides events when a tooltip is requested.
When a QGraphicsView receives a QEvent of type QEvent::ToolTip, it creates a QGraphicsSceneHelpEvent, which is forwarded to the scene. You can set a tooltip on a QGraphicsItem with setToolTip(); by default QGraphicsScene displays the tooltip of the QGraphicsItem with the highest z-value (i.e, the top-most item) under the mouse position.
QGraphicsView does not forward events when "What's This" and status tip help is requested. If you need this, you can reimplement QGraphicsView::viewportEvent() and forward QStatusTipEvent events and QEvents of type QEvent::WhatsThis to the scene.
Methods
impl QGraphicsSceneHelpEvent
[src]
pub unsafe fn new_1a(type_: Type) -> CppBox<QGraphicsSceneHelpEvent>
[src]
Calls C++ function: [constructor] void QGraphicsSceneHelpEvent::QGraphicsSceneHelpEvent(QEvent::Type type = …)
.
pub unsafe fn new_0a() -> CppBox<QGraphicsSceneHelpEvent>
[src]
The QGraphicsSceneHelpEvent class provides events when a tooltip is requested.
Calls C++ function: [constructor] void QGraphicsSceneHelpEvent::QGraphicsSceneHelpEvent()
.
The QGraphicsSceneHelpEvent class provides events when a tooltip is requested.
When a QGraphicsView receives a QEvent of type QEvent::ToolTip, it creates a QGraphicsSceneHelpEvent, which is forwarded to the scene. You can set a tooltip on a QGraphicsItem with setToolTip(); by default QGraphicsScene displays the tooltip of the QGraphicsItem with the highest z-value (i.e, the top-most item) under the mouse position.
QGraphicsView does not forward events when "What's This" and status tip help is requested. If you need this, you can reimplement QGraphicsView::viewportEvent() and forward QStatusTipEvent events and QEvents of type QEvent::WhatsThis to the scene.
pub unsafe fn scene_pos(&self) -> CppBox<QPointF>
[src]
Returns the position of the mouse cursor in scene coordinates at the moment the help event was sent.
Calls C++ function: QPointF QGraphicsSceneHelpEvent::scenePos() const
.
Returns the position of the mouse cursor in scene coordinates at the moment the help event was sent.
See also screenPos().
pub unsafe fn screen_pos(&self) -> CppBox<QPoint>
[src]
Returns the position of the mouse cursor in screen coordinates at the moment the help event was sent.
Calls C++ function: QPoint QGraphicsSceneHelpEvent::screenPos() const
.
Returns the position of the mouse cursor in screen coordinates at the moment the help event was sent.
See also scenePos().
pub unsafe fn set_scene_pos(&mut self, pos: impl CastInto<Ref<QPointF>>)
[src]
Calls C++ function: void QGraphicsSceneHelpEvent::setScenePos(const QPointF& pos)
.
pub unsafe fn set_screen_pos(&mut self, pos: impl CastInto<Ref<QPoint>>)
[src]
Calls C++ function: void QGraphicsSceneHelpEvent::setScreenPos(const QPoint& pos)
.
Methods from Deref<Target = QGraphicsSceneEvent>
pub unsafe fn set_widget(&mut self, widget: impl CastInto<MutPtr<QWidget>>)
[src]
Calls C++ function: void QGraphicsSceneEvent::setWidget(QWidget* widget)
.
pub unsafe fn widget(&self) -> MutPtr<QWidget>
[src]
Returns the widget where the event originated, or 0 if the event originates from another application.
Calls C++ function: QWidget* QGraphicsSceneEvent::widget() const
.
Returns the widget where the event originated, or 0 if the event originates from another application.
Trait Implementations
impl Deref for QGraphicsSceneHelpEvent
[src]
type Target = QGraphicsSceneEvent
The resulting type after dereferencing.
fn deref(&self) -> &QGraphicsSceneEvent
[src]
Calls C++ function: QGraphicsSceneEvent* static_cast<QGraphicsSceneEvent*>(QGraphicsSceneHelpEvent* ptr)
.
impl DerefMut for QGraphicsSceneHelpEvent
[src]
fn deref_mut(&mut self) -> &mut QGraphicsSceneEvent
[src]
Calls C++ function: QGraphicsSceneEvent* static_cast<QGraphicsSceneEvent*>(QGraphicsSceneHelpEvent* ptr)
.
impl StaticUpcast<QGraphicsSceneEvent> for QGraphicsSceneHelpEvent
[src]
unsafe fn static_upcast(
ptr: Ptr<QGraphicsSceneHelpEvent>
) -> Ptr<QGraphicsSceneEvent>
[src]
ptr: Ptr<QGraphicsSceneHelpEvent>
) -> Ptr<QGraphicsSceneEvent>
Calls C++ function: QGraphicsSceneEvent* static_cast<QGraphicsSceneEvent*>(QGraphicsSceneHelpEvent* ptr)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QGraphicsSceneHelpEvent>
) -> MutPtr<QGraphicsSceneEvent>
[src]
ptr: MutPtr<QGraphicsSceneHelpEvent>
) -> MutPtr<QGraphicsSceneEvent>
Calls C++ function: QGraphicsSceneEvent* static_cast<QGraphicsSceneEvent*>(QGraphicsSceneHelpEvent* ptr)
.
impl StaticUpcast<QEvent> for QGraphicsSceneHelpEvent
[src]
unsafe fn static_upcast(ptr: Ptr<QGraphicsSceneHelpEvent>) -> Ptr<QEvent>
[src]
Calls C++ function: QEvent* static_cast<QEvent*>(QGraphicsSceneHelpEvent* ptr)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QGraphicsSceneHelpEvent>
) -> MutPtr<QEvent>
[src]
ptr: MutPtr<QGraphicsSceneHelpEvent>
) -> MutPtr<QEvent>
Calls C++ function: QEvent* static_cast<QEvent*>(QGraphicsSceneHelpEvent* ptr)
.
impl StaticDowncast<QGraphicsSceneHelpEvent> for QGraphicsSceneEvent
[src]
unsafe fn static_downcast(
ptr: Ptr<QGraphicsSceneEvent>
) -> Ptr<QGraphicsSceneHelpEvent>
[src]
ptr: Ptr<QGraphicsSceneEvent>
) -> Ptr<QGraphicsSceneHelpEvent>
Calls C++ function: QGraphicsSceneHelpEvent* static_cast<QGraphicsSceneHelpEvent*>(QGraphicsSceneEvent* ptr)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QGraphicsSceneEvent>
) -> MutPtr<QGraphicsSceneHelpEvent>
[src]
ptr: MutPtr<QGraphicsSceneEvent>
) -> MutPtr<QGraphicsSceneHelpEvent>
Calls C++ function: QGraphicsSceneHelpEvent* static_cast<QGraphicsSceneHelpEvent*>(QGraphicsSceneEvent* ptr)
.
impl StaticDowncast<QGraphicsSceneHelpEvent> for QEvent
[src]
unsafe fn static_downcast(ptr: Ptr<QEvent>) -> Ptr<QGraphicsSceneHelpEvent>
[src]
Calls C++ function: QGraphicsSceneHelpEvent* static_cast<QGraphicsSceneHelpEvent*>(QEvent* ptr)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QEvent>
) -> MutPtr<QGraphicsSceneHelpEvent>
[src]
ptr: MutPtr<QEvent>
) -> MutPtr<QGraphicsSceneHelpEvent>
Calls C++ function: QGraphicsSceneHelpEvent* static_cast<QGraphicsSceneHelpEvent*>(QEvent* ptr)
.
impl DynamicCast<QGraphicsSceneHelpEvent> for QGraphicsSceneEvent
[src]
unsafe fn dynamic_cast(
ptr: Ptr<QGraphicsSceneEvent>
) -> Ptr<QGraphicsSceneHelpEvent>
[src]
ptr: Ptr<QGraphicsSceneEvent>
) -> Ptr<QGraphicsSceneHelpEvent>
Calls C++ function: QGraphicsSceneHelpEvent* dynamic_cast<QGraphicsSceneHelpEvent*>(QGraphicsSceneEvent* ptr)
.
unsafe fn dynamic_cast_mut(
ptr: MutPtr<QGraphicsSceneEvent>
) -> MutPtr<QGraphicsSceneHelpEvent>
[src]
ptr: MutPtr<QGraphicsSceneEvent>
) -> MutPtr<QGraphicsSceneHelpEvent>
Calls C++ function: QGraphicsSceneHelpEvent* dynamic_cast<QGraphicsSceneHelpEvent*>(QGraphicsSceneEvent* ptr)
.
impl DynamicCast<QGraphicsSceneHelpEvent> for QEvent
[src]
unsafe fn dynamic_cast(ptr: Ptr<QEvent>) -> Ptr<QGraphicsSceneHelpEvent>
[src]
Calls C++ function: QGraphicsSceneHelpEvent* dynamic_cast<QGraphicsSceneHelpEvent*>(QEvent* ptr)
.
unsafe fn dynamic_cast_mut(
ptr: MutPtr<QEvent>
) -> MutPtr<QGraphicsSceneHelpEvent>
[src]
ptr: MutPtr<QEvent>
) -> MutPtr<QGraphicsSceneHelpEvent>
Calls C++ function: QGraphicsSceneHelpEvent* dynamic_cast<QGraphicsSceneHelpEvent*>(QEvent* ptr)
.
impl CppDeletable for QGraphicsSceneHelpEvent
[src]
Auto Trait Implementations
impl Send for QGraphicsSceneHelpEvent
impl Unpin for QGraphicsSceneHelpEvent
impl Sync for QGraphicsSceneHelpEvent
impl UnwindSafe for QGraphicsSceneHelpEvent
impl RefUnwindSafe for QGraphicsSceneHelpEvent
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,