Hi there,

maybe I am going mad??? I have created a class 
QmitkMyAppWorkbenchWindowAdvisor, which publically derives from QObject and 
QmitkExtWorkbenchWindowAdvisor.
I used multiple inheritance, so I could use the Q_OBJECT macro, and connect a 
menu bar Action to a slot within my class.

On Mac, in Debug and Release mode, and on Ubuntu in Release mode, this works 
fine.
On Ubuntu in Debug mode only, I get compiler errors:

warning: direct base 'QObject' inaccessible in 
'QmitkMyAppWorkbenchWindowAdvisor' due to ambiguity

in the PostWindowCreate() method, that i have written I am connecting a slot, 
and the error message I get is:

error: 'QObject' is an ambiguous base of 'QmitkMyAppWorkbenchWindowAdvisor'

I notice that when moc is running on my class, I get the warning:

Warning: Class QmitkMyAppWorkbenchWindowAdvisor inherits from two QObject 
slubclasses QObject and QmitkExtWorkbenchWindowAdvisor. This is not supported! 

However, this isnt true, as QmitkExtWorkbenchWindowAdvisor and all the parent 
classes I checked don't derive from QObject?

Has anyone seen anything like this?

Thanks

Matt






------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to