QWhatsThisClickedEvent Class | Qt GUI | Qt 6.12.0
Description: The QWhatsThisClickedEvent class provides an event that can be used to handle hyperlinks in a "What's This?" text.
Keywords: class

- Qt 6.12
- Qt GUI
- C++ Classes
- QWhatsThisClickedEvent
- Qt 6.12.0 Reference Documentation

# 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

- List of all members, including inherited members
- QWhatsThisClickedEvent is part of Event Classes and Help System.

## Public Functions

| QWhatsThisClickedEvent(const QString &href)
QString | href() const

## Protected Functions

| QWhatsThisClickedEvent(QWhatsThisClickedEvent &&)
QWhatsThisClickedEvent & | operator=(QWhatsThisClickedEvent &&)
QWhatsThisClickedEvent & | operator=(const QWhatsThisClickedEvent &other)

## Detailed Description

See also QWhatsThis, QHelpEvent, and QStatusTipEvent.

## Member Function Documentation

### `[explicit]` 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 delete]` QWhatsThisClickedEvent::QWhatsThisClickedEvent(QWhatsThisClickedEvent &&)

Move-constructs an instance of QWhatsThisClickedEvent. This function is deleted.

### QString QWhatsThisClickedEvent::href() const

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

### `[protected delete]` QWhatsThisClickedEvent &QWhatsThisClickedEvent::operator=(QWhatsThisClickedEvent &&)

Move-assigns other to this QWhatsThisClickedEvent instance. This function is deleted.

### `[noexcept protected default]` QWhatsThisClickedEvent &QWhatsThisClickedEvent::operator=(const QWhatsThisClickedEvent &other)

Copy-assigns other to this QWhatsThisClickedEvent instance.