Hi Miklos,
thanks for attatching the patch, this makes trouble shooting a lot easier.
Your perspective implementation should look like:
class QmitkAwesomePerspective: public QObject, public berry::IPerspectiveFactory
{
*Q_OBJECT
Q_INTERFACES(berry::IPerspectiveFactory)*
public:
...
};
and you must add the QmitkAwesomePerspective.h file to the MOC_H_FILES
list in your files.cmake file.
Here is a citation from the error output ;-)
or you forgot to
run Qt's moc on the header file
Best,
Sascha
On 07/21/2011 05:04 PM, Miklos Espak wrote:
Hi,
for your suggestion I keep on flooding the mailing list. ;-)
I created a perspective for my plugin. It worked well with BlueBerry
but after the migration to CTK I get an error at run-time. To make it
easy to reconstruct the situation, I remade all the changes on the
AwesomeProject.
The error is the following:
!2.080! [BlueBerry] WARNING: The class QmitkAwesomePerspective was not
registered as an Extension Type using
BERRY_REGISTER_EXTENSION_CLASS(type, pluginContext) or you forgot to
run Qt's moc on the header file. Legacy BlueBerry bundles should use
CreateExecutableExtension<C>(propertyName, C::GetManifestName())
instead.
!2.080! [BlueBerry] WARNING: Could not load executable extension
QmitkAwesomePerspective from my.awesomeproject.exampleplugin
The perspective is registered in mitkPluginActivator.cpp with the
following command:
BERRY_REGISTER_EXTENSION_CLASS(QmitkAwesomePerspective, context)
Moreover, the src/internal/QmitkAwesomePerspective.h is added to the
MOC_H_FILES section of files.cmake.
I attached the test as a patch on the project template. I hope the
format is correct.
Is it a bug or I am doing something wrong?
Thanks!
Miklos
------------------------------------------------------------------------------
5 Ways to Improve & Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users