QGenericPluginFactory Class

QGenericPluginFactory 类创建插件驱动程序。更多

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

静态公共成员

QObject *create(const QString &key, const QString &specification)
QStringList keys()

详细说明

另请参见 QGenericPlugin

成员函数文档

[static] QObject *QGenericPluginFactory::create(const QString &key, const QString &specification)

使用给定的specification 创建key 指定的驱动程序。

注意,键值不区分大小写。

另请参阅 keys().

[static] QStringList QGenericPluginFactory::keys()

返回有效按键列表,即可用的鼠标驱动程序。

另请参见 create()。

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