You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, January 20th 2010, 9:01am

KPluginLoader: Could not find plugin "kwordpart"

Guys, I get a

Quoted


"KPluginLoader::KPluginLoader: Could not find plugin "kwordpart""

this is my code and substituting kwordpart with katepart works OK which means that my application integrates the katepart in the mainwindow (KParts::MainWindow). I have build the whole koffice 2.1 without any errors and installed it in ~/koffice-2.1/install/, which I've put in the KDEDIRS variable ( via export in bashrc ). I can see the libkwordpart.so in the install/lib and install/lib/kde4 directory. I've read this on the forum:

"http://www.qtforum.org/post/47310/load-parts-w-o-install.html?highlight=kpart#post47310"

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
KPluginFactory *factory = KPluginLoader("kwordpart").factory();
KParts::ReadWritePart *m_part;

if (factory)
{
  m_part = static_cast<KParts::ReadWritePart *>
                 (factory->create(this, "kwordpart" ));

  if (m_part)
  {
      layout2->addWidget( m_part->widget() );
  }
}
else
{
  return;
}

2

Wednesday, January 20th 2010, 1:45pm

This is what I get for kde-config --path lib :

"/home/user/.kde/lib/:/home/user/koffice-2.1/install/lib/:/opt/kde3/lib/"

after a fresh installation I saw that the libkwordpart only resides in ~/koffice-2.1/install/lib/kde4 and not also in the ~/koffice-2.1/install/lib directory. Anyone??

This post has been edited 1 times, last edit by "xyfix" (Jan 20th 2010, 2:00pm)


3

Thursday, January 28th 2010, 10:19am

OK, I found the answer and in short I would say that the messages I received can be ignored the plugin is loaded. The full answer can be found here http://forum.kde.org/viewtopic.php?f=96&t=84375&start=30