-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/qt4 qt5 #80
base: master
Are you sure you want to change the base?
Feature/qt4 qt5 #80
Conversation
Remove remaining dependencies to qt4
…s part of the exported include path
Need to remove the prefixes
This avoids doing unnecessary work and prevents osgViz from trying to swap buffers on an unmapped window. This methods falls flat once more than one Vizkit3DWidget gets instanciated, but that seems to be not handled correctly in any case: The update frequency multiplies by the number of Vizkit3DWidgets, because osgviz always updates all windows.
Instead, move the bits we actually use(not much) into Vizkit3DWidget. This allows to call osgViewer::CompositeViewer::frame() only when the widget actually is visible. Calling frame() while invisible makes QOpenGLContext::swapBuffers() warn about being called with a non-exposed window.
This reverts commit 6af0401.
This reverts commit 6af0401.
Revert "openscenegraph-osgQt renamed to openscenegraph-osgQt5"
… into feature/qt5
Also makes the plugin information visible
Make Qts moc look at the headers needing MOCing
Because that way, they get installed.
…n PropertyBrowserWidget
fix: catch segmentation failed, if string property can not be set
Because that way, they get installed.
Custom gui
Sometimes devs might want to switch the visualization root to another frame, e.g. switch from odometry to slam this is now possible
make the root of the transformer display selectable
…o be able to find it" This reverts commit 3c803f1.
This allows rocks cmake macros to populate the pkgconfig .pc file with the include and library from QtPropertyBrowser.
…into feature/qt4-qt5
Sadly, the Q_EXPORT_PLUGIN2(FactoryClass, FactoryClass) cannot go into the header, while the class declaration must be in the header. Use the opportunity to separate the function implementation into the source file.
For qt4, it keeps looking for lib*-viz.().
This was removed on the qt5 branch for some reason. No ill effects were observed, and now, the camera is usable from the start.
This allows building on systems that lack either qt version.
renaming osg_qt4 is still to do.
The qt4 variant does cope with qtpropertybrowser not being installed, but it prefers the externally built variant.
This was broken in 53b00e8 and there already are comments that say that Q_OBJECT cannot be used there.
There are some last minute changes that i'd like to circulate a bit longer still. These have been found in a workspace that has no qt5 enabled packages but this and its dependencies. We have been running CI on ubuntu 22.04 with qt5 for a while now, and there seem to be very few failures to resolve on that side. As public repositories go, i think only vizkit3d_debug_drawings will need a few more changes to properly keep the qt dependencies out of components on the qt4-qt5 branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, bu i didn't test the qt4 version
This makes the vizkit3d-qt5 library available on systems having the required qt5 prerequisites. Qt4 using packages should (and have been tested to) be unaffected.