本页内容

QGenericPluginFactory Class

QGenericPluginFactory 类用于创建插件驱动程序。更多内容...

头文件: #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()。

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