Skip to content
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

Open
wants to merge 66 commits into
base: master
Choose a base branch
from
Open

Feature/qt4 qt5 #80

wants to merge 66 commits into from

Conversation

pierrewillenbrockdfki
Copy link
Contributor

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.

Dennis Hemker and others added 30 commits December 2, 2021 09:10
Remove remaining dependencies to qt4
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.
Revert "openscenegraph-osgQt renamed to openscenegraph-osgQt5"
Also makes the plugin information visible
Make Qts moc look at the headers needing MOCing
Because that way, they get installed.
fix: catch segmentation failed, if string property can not be set
Because that way, they get installed.
haider8645 and others added 23 commits February 24, 2023 08:47
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
This allows rocks cmake macros to populate the pkgconfig .pc file with
the include and library from QtPropertyBrowser.
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.
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.
@pierrewillenbrockdfki
Copy link
Contributor Author

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.

@pierrewillenbrockdfki pierrewillenbrockdfki marked this pull request as ready for review February 25, 2025 12:00
Copy link
Member

@planthaber planthaber left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants