QtBase
v6.3.1
|
Classes | |
struct | RemovableDriveEntry |
Public Types | |
enum | VolumeUuid { UnknownUuid , UuidIoVolumeLock , UuidIoVolumeLockFailed , UuidIoVolumeUnlock , UuidIoMediaRemoval } |
Signals | |
void | driveAdded () |
void | driveRemoved () |
void | driveRemoved (const QString &) |
void | driveLockForRemoval (const QString &) |
void | driveLockForRemovalFailed (const QString &) |
Signals inherited from QObject | |
void | destroyed (QObject *=nullptr) |
void | objectNameChanged (const QString &objectName, QPrivateSignal) |
Definition at line 91 of file qfilesystemwatcher_win.cpp.
Enumerator | |
---|---|
UnknownUuid | |
UuidIoVolumeLock | |
UuidIoVolumeLockFailed | |
UuidIoVolumeUnlock | |
UuidIoMediaRemoval |
Definition at line 96 of file qfilesystemwatcher_win.cpp.
|
explicit |
Definition at line 128 of file qfilesystemwatcher_win.cpp.
QWindowsRemovableDriveListener::~QWindowsRemovableDriveListener | ( | ) |
Definition at line 147 of file qfilesystemwatcher_win.cpp.
Definition at line 275 of file qfilesystemwatcher_win.cpp.
|
signal |
|
signal |
|
overridevirtual |
This method is called for every native event.
It is called by the QPA platform plugin. On Windows, it is called by the event dispatcher.
The type of event eventType is specific to the platform plugin chosen at run-time, and can be used to cast message to the right type.
On X11, eventType is set to "xcb_generic_event_t", and the message can be casted to a xcb_generic_event_t pointer.
On Windows, eventType is set to "windows_generic_MSG" for messages sent to toplevel windows, and "windows_dispatcher_MSG" for system-wide messages such as messages from a registered hot key. In both cases, the message can be casted to a MSG pointer. The result pointer is only used on Windows, and corresponds to the LRESULT pointer.
On macOS, eventType is set to "mac_generic_NSEvent", and the message can be casted to an NSEvent pointer.
In your reimplementation of this function, if you want to filter the message out, i.e. stop it being handled further, return true; otherwise return false.
{Linux example}
{macOS example}
mycocoaeventfilter.h:
mycocoaeventfilter.mm:
myapp.pro:
Implements QAbstractNativeEventFilter.
Definition at line 257 of file qfilesystemwatcher_win.cpp.