Brilliant! Thanks ever so much!!!
Maybe, Im not going mad after all... phew. Matt On 27 Aug 2011, at 18:15, Sascha Zelzer wrote: > Hi Matt, > > Yesterday, I added a QObject inheritance to QmitkExtWorkbenchWindowAdvisor > for bug #9185 (http://bugs.mitk.org/show_bug.cgi?id=9185). You could now > override the protected slots to customize the "about", "intro" and "help" > actions. > > Sorry for the confusion, > > Sascha > > On 08/27/2011 06:48 PM, Clarkson, Matt wrote: >> 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 > ------------------------------------------------------------------------------ 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
