[osg-users] osgviewerQT - Slot connection with QMainWindow

Linares Antonin antonin.linares at onera.fr
Thu Nov 5 03:08:57 PST 2009


In my no expert opinion you must use moc for signal slots mechanism.
Q_OBJECT, slots, signal macro are pre processed by moc to produces a
source file.


Linares Antonin

Le mercredi 04 novembre 2009 à 17:22 +0000, Darick Barnes a écrit :
> Hi,
> I’m having trouble modifying osgviewerQT.  I am trying to modify the ViewerQT MDI version portion of the code.  I am adding file menus to QMainWindow* mw (ex File – New, Open, Save etc) successfully but I am having troubles getting the SLOT connections to work based on actions.  How do you get the SLOT connections from QMainWindow* mw and not the class inherited AdapterWidget or QApplication Slot connections.  I am using vs2008 so if there is a way to do this without Moc it would be great.  If I have to use Moc what is the procedure?
> Thank you!
> Cheers,
> Darick
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=19178#19178
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

More information about the osg-users mailing list