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

highgui::create_trackbar() deprecation warning #261

Closed
gui2maraes opened this issue Aug 31, 2021 · 1 comment
Closed

highgui::create_trackbar() deprecation warning #261

gui2maraes opened this issue Aug 31, 2021 · 1 comment

Comments

@gui2maraes
Copy link

When calling highgui::create_trackbar(), I get this deprecation warning:
[ WARN:0] global /build/opencv/src/opencv-4.5.3/modules/highgui/src/window.cpp (703) createTrackbar UI/Trackbar(test bar@test window): Using 'value' pointer is unsafe and deprecated. Use NULL as value pointer. To fetch trackbar value setup callback.

In the C++ api, you could just use a nullptr, but in rust, the argument is a reference, so I tried changing to an Option<&mut i32>, but the binding generator overrides it.

@twistedfall
Copy link
Owner

Thanks for the report, it should be fixed in v0.54.0, you can now pass None there.

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

No branches or pull requests

2 participants