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

chore: add simple Qt example that uses libwaku #3310

Merged
merged 5 commits into from
Feb 28, 2025
Merged

Conversation

Ivansete-status
Copy link
Collaborator

Description

Simple Qt example that runs libwaku.
It only contains two buttons: start node; stop node.

image

note: This is part of investigation where we see that Status app crashes when loading libwaku.

Issue

Copy link
Contributor

@NagyZoltanPeter NagyZoltanPeter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing blocking. LGTM!

void* userData = nullptr;

char jsonConfig[5000];
snprintf(jsonConfig, 5000, "{ \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick, but you don't need sprintf if this is only static string...or bet you can directly use QString here.

Copy link
Collaborator Author

@Ivansete-status Ivansete-status Feb 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Addressed in d121dd9

public:
WakuHandler() : QObject(), ctx(nullptr) {}

void initialize(const QString& jsonConfig, void* event_handler, void* userData) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think void* event_handler can directly be WakuCallBack type...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Addressed in 49b352d

Copy link
Contributor

@gabrielmer gabrielmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazinggg, thanks so much!

@Ivansete-status Ivansete-status merged commit b29284e into master Feb 28, 2025
10 checks passed
@Ivansete-status Ivansete-status deleted the qt-example branch February 28, 2025 19:28
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.

3 participants