Nesta página

QAbstractEventDispatcherV2 Class

Cabeçalho: #include <QAbstractEventDispatcherV2>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core
Herdado de: QAbstractEventDispatcher

Funções públicas

QAbstractEventDispatcherV2(QObject *parent = nullptr)
virtual ~QAbstractEventDispatcherV2() override

Descrição detalhada

Esta classe é uma solução provisória para permitir a transição para uma API baseada em std::chrono para o distribuidor de eventos do Qt. No Qt 7, ela será mesclada com QAbstractEventDispatcher, substituindo as funções virtuais puras ali presentes pelas definidas aqui.

Recomenda-se que aplicativos e bibliotecas sejam portados para a nova API antes desse lançamento futuro, a fim de simplificar o trabalho quando chegar a hora.

Documentação das funções de membro

[explicit] QAbstractEventDispatcherV2::QAbstractEventDispatcherV2(QObject *parent = nullptr)

Cria um novo distribuidor de eventos com o ` parent` fornecido.

[override virtual noexcept] QAbstractEventDispatcherV2::~QAbstractEventDispatcherV2()

Destrói o despachador de eventos.

© 2026 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.