* 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
This commit is contained in:
Markus Gans 2015-05-16 00:02:33 +02:00
parent 092566032b
commit b915d21550
1 changed files with 16 additions and 0 deletions

16
test/hello.cpp Normal file
View File

@ -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();
}