* 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:
parent
092566032b
commit
b915d21550
|
@ -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();
|
||||||
|
}
|
Loading…
Reference in New Issue