File indexing completed on 2024-04-28 05:44:44
0001 #include "Bindings.h" 0002 #include <QApplication> 0003 #include <QMessageBox> 0004 0005 int main(int argc, char* argv[]) 0006 { 0007 QApplication app(argc, argv); 0008 Simple simple; // This is the Rust object 0009 QMessageBox msgBox; 0010 msgBox.setText(simple.message()); 0011 msgBox.connect(&msgBox, &QMessageBox::finished, &msgBox, []() { 0012 QCoreApplication::quit(); 0013 }); 0014 msgBox.show(); 0015 0016 return app.exec(); 0017 }