Skip to content

Commit

Permalink
Add quit method
Browse files Browse the repository at this point in the history
  • Loading branch information
barche committed Oct 14, 2023
1 parent a4517fb commit b0d65d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wrap_qml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ JLCXX_MODULE define_julia_module(jlcxx::Module& qml_module)
qml_module.add_type<QCoreApplication>("QCoreApplication", julia_base_type<QObject>());
qml_module.add_type<QGuiApplication>("QGuiApplication", julia_base_type<QCoreApplication>())
.constructor<int&, char**>();
qml_module.method("exit", [] () { std::cout << "calling C++ exit" << std::endl; QGuiApplication::instance()->exit(); });
qml_module.method("quit", [] () { QGuiApplication::instance()->quit(); });

qml_module.add_type<QString>("QString", julia_type("AbstractString"))
.method("cppsize", &QString::size);
Expand Down

0 comments on commit b0d65d5

Please sign in to comment.