You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I mapped quite a few Widgets for my project. Now i want to use callbacks on a QPushButton. Unfortunately i am unable to make the clicked (on_clicked) signal to work. It seems like the function is never called.
Also have a look at #622 we've been building as an example for widgets.
Ah hmm, we used to have #[must_use] but it must have been lost in the refactor to having QMetaObjectConnectionGuard as it's own type.
Let change this issue to track adding back #[must_use] to the connection calls.
ahayzen-kdab
changed the title
unable to make qsignal to call its closure
Connections don't have must_use when returning a QMetaObjectConnectionGuard (was: unable to make qsignal to call its closure)
Apr 18, 2024
I mapped quite a few Widgets for my project. Now i want to use callbacks on a QPushButton. Unfortunately i am unable to make the
clicked
(on_clicked
) signal to work. It seems like the function is never called.Example code:
Definition of the signal:
I pushed the full example to my fork of this project: https://github.com/binja-tools/cxx-qt/tree/test-button/examples/cargo_without_cmake_2
Am i doing something wrong or is this not implemented for C++Qt classes?
The text was updated successfully, but these errors were encountered: