9#include <QtCore/qbasictimer.h>
10#include <QtQml/qqmlinfo.h>
11#include <QtQml/qqmlengine.h>
12#include <QtQml/qqmlcontext.h>
13#include <QtQml/qqmlcomponent.h>
14#include <QtQuick/qquickwindow.h>
148 d->allowVerticalFlip =
true;
149 d->allowHorizontalFlip =
true;
150 d->popupItem->setHoverEnabled(
false);
252 qmlWarning(
object) <<
"ToolTip must be attached to an Item";
264void QQuickToolTip::show(
const QString &
text,
int ms)
278void QQuickToolTip::hide()
296 QQuickToolTipAttached *attached = qobject_cast<QQuickToolTipAttached *>(qmlAttachedPropertiesObject<QQuickToolTip>(
d->parentItem,
false));
305 if (
event->timerId() ==
d->timeoutTimer.timerId()) {
310 if (
event->timerId() ==
d->delayTimer.timerId()) {
318#if QT_CONFIG(accessibility)
319QAccessible::Role QQuickToolTip::accessibleRole()
const
321 return QAccessible::ToolTip;
324void QQuickToolTip::accessibilityActiveChanged(
bool active)
327 QQuickPopup::accessibilityActiveChanged(active);
352 static const char *
name =
"_q_QQuickToolTip";
358 component.setData(
"import QtQuick.Controls; ToolTip { }",
QUrl());
362 object->setParent(
engine);
364 tip = qobject_cast<QQuickToolTip *>(
object);
402 d->instance(
true)->setText(
text);
429 d->instance(
true)->setDelay(
delay);
456 d->instance(
true)->setTimeout(
timeout);
474 return tip->isVisible() && tip->parentItem() ==
parent();
497 return d->instance(
true);
537 if (
parent() == tip->parentItem())
543#include "moc_qquicktooltip_p.cpp"
void start(int msec, QObject *obj)
\obsolete Use chrono overload instead.
void stop()
Stops the timer.
QObject * parent() const
Returns a pointer to the parent object.
virtual void timerEvent(QTimerEvent *event)
This event handler can be reimplemented in a subclass to receive timer events for the object.
QVariant property(const char *name) const
Returns the value of the object's name property.
bool setProperty(const char *name, const QVariant &value)
Sets the value of the object's name property to value.
The QPalette class contains color groups for each widget state.
The QQmlComponent class encapsulates a QML component definition.
The QQmlEngine class provides an environment for instantiating QML components.
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
ItemChange
Used in conjunction with QQuickItem::itemChange() to notify the item about certain types of changes.
static QPalette palette(Scope scope)
static QFont font(Scope scope)
\macro QT_RESTRICTED_CAST_FROM_ASCII
static auto fromValue(T &&value) noexcept(std::is_nothrow_copy_constructible_v< T > &&Private::CanUseInternalSpace< T >) -> std::enable_if_t< std::conjunction_v< std::is_copy_constructible< T >, std::is_destructible< T > >, QVariant >
Combined button and popup list for selecting options.
GLbitfield GLuint64 timeout
[4]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLdouble GLdouble GLdouble GLdouble q
static qreal component(const QPointF &point, unsigned int i)
QQmlEngine * qmlEngine(const QObject *obj)
Q_QML_EXPORT QQmlInfo qmlWarning(const QObject *me)
QQuickItem * qobject_cast< QQuickItem * >(QObject *o)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent