diff options
author | Alex Blasche <alexander.blasche@qt.io> | 2017-06-22 16:38:06 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@qt.io> | 2017-06-28 07:05:44 +0000 |
commit | 9fcdb6bc25ee55bd0900b35734c58c9313f5b974 (patch) | |
tree | b27e7eb3a16f0d45f2751188ec718a0acb41745f /examples/bluetooth/pingpong/main.cpp | |
parent | 0b475c565843e6c0901558d6342a02722d57acbc (diff) |
Improve pingpong example
The following adjustments were done:
- Use new Qt connect syntax
- Add QLoggingCatergory enablers (easy to enable by uncommenting)
- Makes the UI more robust to High vs Low DPI issues
Change-Id: Iad99a67ac375de828883b4add99d440f7a6994c6
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'examples/bluetooth/pingpong/main.cpp')
-rw-r--r-- | examples/bluetooth/pingpong/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/bluetooth/pingpong/main.cpp b/examples/bluetooth/pingpong/main.cpp index d2a84440..b6430248 100644 --- a/examples/bluetooth/pingpong/main.cpp +++ b/examples/bluetooth/pingpong/main.cpp @@ -41,10 +41,13 @@ #include <QQmlContext> #include <QGuiApplication> #include <QQmlApplicationEngine> +#include <QLoggingCategory> #include "pingpong.h" + int main(int argc, char *argv[]) { + //QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true")); QGuiApplication app(argc, argv); PingPong pingPong; QQmlApplicationEngine engine; |