From bf00721b9c85a690a7be4f08d0828f6acf2f1287 Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Wed, 4 Nov 2015 16:30:14 +0000 Subject: Improved QAPPLICATION_CLASS macro Now it can be defined in the cpp file that include it (usually main.cpp). --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 87d08ba..d458de5 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ Using ```QApplication::instance()``` is a neat way to get the ```SingleApplicati Extending from other application classes ----------------------- -```SingleApplication``` extends from the ```QApplication``` class by default , but you can easily change that to ```QGuiApplication``` or ```QCoreApplication``` from the ```singleapplication.h``` file, using the ```QAPPLICATION_CLASS``` macro. +`SingleApplication` extends from the `QApplication` class by default , but you can easily change that to `QGuiApplication` or `QCoreApplication` with the `QAPPLICATION_CLASS` macro. Define it before the include statement of `singleapplication.h` or change the default value in the file. __Example:__ -- cgit v1.2.1