Qt 4.8
Static Public Functions | List of all members
QGenericPluginFactory Class Reference

The QGenericPluginFactory class creates window-system related plugin drivers in Qt QPA. More...

#include <qgenericpluginfactory_qpa.h>

Static Public Functions

static QObjectcreate (const QString &, const QString &)
 
static QStringList keys ()
 Returns the list of valid keys, i.e. More...
 

Detailed Description

The QGenericPluginFactory class creates window-system related plugin drivers in Qt QPA.

Since
4.8

Note that this class is only available in Qt QPA.

See also
QGenericPlugin

Definition at line 56 of file qgenericpluginfactory_qpa.h.

Functions

◆ create()

static QObject* QGenericPluginFactory::create ( const QString ,
const QString  
)
static

Referenced by init_plugins().

◆ keys()

QStringList QGenericPluginFactory::keys ( )
static

Returns the list of valid keys, i.e.

the available mouse drivers.

See also
create()

Definition at line 102 of file qgenericpluginfactory_qpa.cpp.

103 {
104  QStringList list;
105 
106 #if !defined(Q_OS_WIN32) || defined(QT_MAKEDLL)
107 #ifndef QT_NO_LIBRARY
108  QStringList plugins = loader()->keys();
109  for (int i = 0; i < plugins.size(); ++i) {
110  if (!list.contains(plugins.at(i)))
111  list += plugins.at(i);
112  }
113 #endif //QT_NO_LIBRARY
114 #endif //QT_MAKEDLL
115  return list;
116 }
const T & at(int i) const
Returns the item at index position i in the list.
Definition: qlist.h:468
The QStringList class provides a list of strings.
Definition: qstringlist.h:66
QBool contains(const QString &str, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the list contains the string str; otherwise returns false.
Definition: qstringlist.h:172
int size() const
Returns the number of items in the list.
Definition: qlist.h:137

The documentation for this class was generated from the following files: