Changeset 5039 in ntrip


Ignore:
Timestamp:
Mar 28, 2013, 5:19:25 PM (11 years ago)
Author:
mervart
Message:
 
Location:
trunk/GnssCenter
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GnssCenter/main/mainwin.cpp

    r5033 r5039  
    3232  setCentralWidget(_mdi);
    3333
    34   // Handle Static Plugins
    35   // ---------------------
    36   qDebug() << "Number of static plugins: " << QPluginLoader::staticInstances().size();
    37   foreach (QObject* plugin, QPluginLoader::staticInstances()) {
     34  // Handle Plugins
     35  // --------------
     36  QDir pluginsDir = QDir(qApp->applicationDirPath());
     37
     38  qDebug() << pluginsDir;
     39
     40  foreach (QString fileName, pluginsDir.entryList(QDir::Files)) {
     41    QPluginLoader loader(pluginsDir.absoluteFilePath(fileName));
     42    QObject* plugin = loader.instance();
     43    qDebug() << fileName << plugin;
    3844  }
    3945
Note: See TracChangeset for help on using the changeset viewer.