From b915d215501a5420c5e85fb1579effb87b06f2b5 Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Sat, 16 May 2015 00:02:33 +0200 Subject: [PATCH] * Remove never read value from code * Add the possibility to use exec() from FMessageBox to enter and leave the main event loop correctly * Add a "hello world" example --- test/hello.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/hello.cpp diff --git a/test/hello.cpp b/test/hello.cpp new file mode 100644 index 00000000..847d4474 --- /dev/null +++ b/test/hello.cpp @@ -0,0 +1,16 @@ +// hello.cpp + +#include "fapp.h" +#include "fmessagebox.h" + + +int main (int argc, char* argv[]) +{ + // Create the application object + FApplication app(argc, argv); + + // Create a simple dialog box + FMessageBox mbox(&app); + mbox.setText("Hello world"); + mbox.exec(); +}