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

C++ based example #15

Open
jeremybastin1207 opened this issue May 5, 2017 · 3 comments
Open

C++ based example #15

jeremybastin1207 opened this issue May 5, 2017 · 3 comments

Comments

@jeremybastin1207
Copy link

Hello Mister Benlau,
We would like to implement your framework in one of our new project.
We would be very interested in an example using C++ instead of QML.
What do we want exactly in our case ? Having stores and actions management in C++.

We would very pleased and grateful if you could have some time for it.

Have a nice day !

@benlau
Copy link
Owner

benlau commented May 5, 2017

Hello,

So far I only have an example in listening to the actions from QML in C++. Quick Flux is a bit overkill for a pure C++ application. It should need a new framework.

However, there has a problem in making a Flux implementation for in C++. That is the data type to be passed to Dispatcher. C++ is strong type language but Dispatcher allow any kind of data to be passed to the dispatch() function. Ofcoz, it could use QVariant type just like what Quick Flux did. But I think C++ developer do not really like this approach.

Therefore, I don't have a solid answer about how to make it for C++ yet.

@jeremybastin1207
Copy link
Author

Thanks for your answer.
I will keep you informed if I find a solution for this issue.

@cerkiewny
Copy link

@benlau could you also mention what is the preferred way of interacting with stores/actions from c++ code? Unless I missunderstand something I should be changing properties in the store singleton, right?

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

3 participants