application/main.c

changeset 518
45ed276ba7a4
parent 517
ac867877999e
child 519
8884c7fbe4cb
--- a/application/main.c	Wed Mar 26 20:42:02 2025 +0100
+++ b/application/main.c	Wed Mar 26 21:15:20 2025 +0100
@@ -773,7 +773,16 @@
 
 #ifdef UI_QT
 
+void application_startup(UiEvent *event, void *data) {
+
+}
+
 int main(int argc, char **argv) {
+    ui_init("app1", 0, NULL);
+    ui_onstartup(application_startup, NULL);
+
+    ui_main();
+
     return 0;
 }
 

mercurial