QWhatsThisClickedEvent Class

The QWhatsThisClickedEvent class provides an event that can be used to handle hyperlinks in a "What's This?" text. More...

Header: #include <QWhatsThisClickedEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
Inherits: QEvent

Public Functions

QWhatsThisClickedEvent(const QString &href)
virtual ~QWhatsThisClickedEvent() override
QString href() const

Reimplemented Public Functions

virtual QWhatsThisClickedEvent *clone() const override

Protected Functions

QWhatsThisClickedEvent(const QWhatsThisClickedEvent &)
QWhatsThisClickedEvent(QWhatsThisClickedEvent &&)

Detailed Description

See also QWhatsThis, QHelpEvent, and QStatusTipEvent.

Member Function Documentation

QWhatsThisClickedEvent::QWhatsThisClickedEvent(const QString &href)

Constructs an event containing a URL specified by href when a link is clicked in a "What's This?" message.

See also href().

[protected] QWhatsThisClickedEvent::QWhatsThisClickedEvent(const QWhatsThisClickedEvent &)

Copy constructor.

[protected] QWhatsThisClickedEvent::QWhatsThisClickedEvent(QWhatsThisClickedEvent &&)

Move-copy constructor.

[override virtual] QWhatsThisClickedEvent::~QWhatsThisClickedEvent()

Destroys the instance of QWhatsThisClickedEvent. The destructor is virtual.

[override virtual] QWhatsThisClickedEvent *QWhatsThisClickedEvent::clone() const

QString QWhatsThisClickedEvent::href() const

Returns the URL that was clicked by the user in the "What's This?" text.

© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.