From cf5b70ae1ac7cbd6143d73d1aff52d08ec909fd2 Mon Sep 17 00:00:00 2001 From: David Boddie Date: Fri, 3 Jun 2011 19:05:31 +0200 Subject: Doc: Added a snippet to show how to test the Qt version. --- doc/src/snippets/qmake/qt_version.pro | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 doc/src/snippets/qmake/qt_version.pro diff --git a/doc/src/snippets/qmake/qt_version.pro b/doc/src/snippets/qmake/qt_version.pro new file mode 100644 index 0000000..ac0338b --- /dev/null +++ b/doc/src/snippets/qmake/qt_version.pro @@ -0,0 +1,7 @@ +#! [checking for a specific version of Qt] +contains(QT_VERSION, "4.7.4") { + message(4.7.4) +} else { + message(Some other version) +} +#! [checking for a specific version of Qt] -- cgit v0.12