Skip to content

How to make callback and property bindings work? #3662

Answered by tronical
EMUNES asked this question in Q&A
Discussion options

You must be logged in to vote

Ah that's a small little bug there :-). Change this line:

MainWindow::new().unwrap().run().unwrap();

to read

app.run().unwrap();

and you'll find that it works :-)

The callback that was installed on app was never used because app itself was never used, instead a new instance was created and run.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@EMUNES
Comment options

Answer selected by tronical
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants