summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* ndefeditor: fix dropdown menu problemsIvan Solovev2022-06-022-6/+27
| | | | | | | | | | | | | Because of QTBUG-98651 and QTBUG-97482 a QPushButton with a dropdown menu was not working properly neither on iOS nor on Android. This patch fixes the issue, but it's not optimal, because it re-creates the menu every time. Ideally we should provide QML-based GUI for the example. Task-number: QTBUG-103949 Pick-to: 6.3 6.2 Change-Id: Icd1e00f27f5c4864a33fa7f1f7755c0e919183cb Reviewed-by: Juha Vuolle <juha.vuolle@insta.fi>
* Add NFCReaderUsageDescription key to NFC example appsJuha Vuolle2022-06-026-0/+98
| | | | | | | | The key is needed for iOS applications accessing NFC hardware Change-Id: Icbdd605504b2392934d7edc7f1daa192ffdef1c3 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
* Remove unsupported Android bluetooth codepathsJuha Vuolle2022-05-122-9/+6
| | | | | | | | | | | | | | | Minimum Android level supported on Qt 6 is Android 6 / API Level 23. This commit removes older unsupported code in order to simplify. This concerns primarily: - sdkVersion() checks - Java reflections (API availability was uncertain) Task-number: QTBUG-102497 Pick-to: 6.2 6.3 Change-Id: Ia90248a0a8f8e32130b8394998c2676c97a02eb5 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Make bluetooth errors visible on pingpong example applicationJuha Vuolle2022-04-121-5/+10
| | | | | | | | | | | | | It's a bit misleading that the UI reports either that the scan is ongoing fine or that a service was simply not found when a discovery error has occurred. Similarly if the server fails to listen() it should be visible on the UI rather than the "server started, waiting" -message. Pick-to: 6.2 6.3 Change-Id: I455a253382f34c39d5cf4b8a45ff855983e3a6be Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Port simple cases of count() to size()Marc Mutz2022-04-111-1/+1
| | | | | | | | | | | | | | | The count() methods on QByteArray and QString are deprecated. The ones on other Qt containers will likely follow soon, so port them all to size(). The changes which also require int -> qsizetype will come in a follow-up patch. Pick-to: 6.3 Change-Id: I23e364019b9cfc457d93f4a3bb4660fe8d790da8 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Juha Vuolle <juha.vuolle@insta.fi> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Add bluetooth example app Qt::Gui linkage on iOSJuha Vuolle2022-03-181-2/+2
| | | | | | | Fixes: QTBUG-101720 Pick-to: 6.3 Change-Id: I5d6e1e51ef73521390a3903b8ff1f225ea5dfa83 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Improve examples CMakeLists.txtKai Köhne2022-02-218-70/+34
| | | | | | | | | | | | | | | | - Remove automatic use of CMAKE_AUTORCC - Only opt into CMAKE_AUTOUIC if .ui files are involved - Remove explicit setting of CMAKE_INCLUDE_CURRENT_DIR - Combine multiple find_package(Qt6 ... calls) - use REQUIRED COMPONENTS - sort components alphabetically - Fix wrong indentations - Use (only) one empty line after multi-line commands Pick-to: 6.3 Change-Id: If1935beb09edd873c45842ae06d0f41267a9b36a Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Avoid multiple client sockets in pingpong bluetooth exampleJuha Vuolle2022-02-121-2/+6
| | | | | | | | | | | | This commit guards against creating multiple client sockets if multiple services are found. In addition the service scanning is stopped when a service has been found and we start connecting a bluetooth socket. Fixes: QTBUG-100289 Pick-to: 5.15 6.2 6.3 Change-Id: Iac2e7eaca17a186ac2d2f62e338be16911f08032 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* Switch examples to build as isolated sub-builds part 2Alexandru Croitor2022-02-051-1/+1
| | | | | | | | | | | | | | | qt_examples_build_begin needs the EXTERNAL_BUILD flag to know that it's safe to build examples as ExternalProjects. It still won't do it in CI until we enable building examples as ExternalProjects for prefix builds. This is preparation for that. Pick-to: 6.2 6.3 Task-number: QTBUG-90820 Change-Id: I675ce84342fbebf714ae5090a5ef668f28dc198b Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* btscanner example: Add option to stop a running scanOliver Wolff2022-01-263-2/+20
| | | | | Change-Id: Id82f6c903938e289559a79b4a2383ad20944c61a Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* PingPong example: let the parent QObject do the cleanupIvan Solovev2022-01-211-2/+1
| | | | | | | | | | | | The m_timer and m_serverInfo instances are created using 'this' as a parent, so we do not need to explicitly delete them in the destructor, but let the parent object deal with them. This also prevents a crash at application close. Pick-to: 6.3 6.2 5.15 Change-Id: If91f01e1ab6dc8e839a06773464eeb9858d2fd36 Reviewed-by: Juha Vuolle <juha.vuolle@insta.fi> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Store the serviceinfo in pingpong exampleJuha Vuolle2022-01-211-1/+1
| | | | | | | | | | | | | | The service info returned by the QBluetoothServer::listen() overload that returns it needs to be stored or otherwise it will be destroyed. The consequence was that the SDP "advertisement" didn't properly include the added pingpong service record on Windows. Task-number: QTBUG-100042 Pick-to: 6.2 6.3 5.15 Change-Id: I79cbd0f574e35bbc1c9c3123ce8382f3aad296d4 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Switch examples to build as isolated sub-buildsAlexandru Croitor2021-12-152-8/+8
| | | | | | | Pick-to: 6.2 6.3 Task-number: QTBUG-90820 Change-Id: Ife7b112e7a800460740f21a69d2ac85133bf0827 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* BtChat: fix crash when no adapter is foundIvan Solovev2021-11-161-2/+12
| | | | | | | | | | | | | | | | | The example was assuming that QBluetoothLocalDevice::allDevices() always returns a non-empty list. This is not true for the cases when desktop has no bluetooth adapters, as well as for WinRT implementation (it always returns empty list for now). This patch fixes the crash and provides some information messages to the console. Note that WinRT implementation has an extended warning, because it returns an empty list even if the adapter actually exists. Fixes: QTBUG-98323 Pick-to: 6.2 Change-Id: Iaa81465cf6be2febf20526c11909667fd60728b3 Reviewed-by: Juha Vuolle <juha.vuolle@insta.fi> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* macOS specific Info.plist file for Bluetooth ExamplesJuha Vuolle2021-11-1110-18/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | The default generated Info.plist is not enough as the Bluetooth examples require NSBluetoothAlwaysUsageDescription key to work. Without this patch on macOS 12 there are two possible outcomes: 1) If the example is built with qmake, the application will crash and the crash report will indicate that the key is missing 2) If the example is built with CMake, the application will not start as it tries to use iOS specific .plist file The patch uses absolute paths in the example CMakeLists.txt files to work around a Ninja bug: https://gitlab.kitware.com/cmake/cmake/-/issues/20181 Using relative paths resulted in "multiple rules generate" errors if the QtConnectivity module is built with examples. Note that the plist files are only effective if the application is started as an app bundle, ie. not if launching the contained binary directly. Pick-to: 6.2 Task-number: QTBUG-98090 Change-Id: Iedb7eabbb8fde6ad1ba14ada1a7ee87ec1d708ba Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Fix 'width' of 'null' QML warnings in lowenergyscanner exampleJuha Vuolle2021-10-253-3/+3
| | | | | | | | | | | | | As per Qt documentation in https://doc.qt.io/qt-5/qml-qtquick-listview.html#example-usage the parent of a delegate can change and be 'null' at times. This commit refers explicitly to the containing view instead. Change-Id: I9c9a8c907daba2b6de52a246ae71cfde0c27e55b Fixes: QTBUG-97691 Pick-to: 6.2 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Andreas Buhr <andreas.buhr@qt.io>
* Polish the btscanner exampleFriedemann Kleint2021-10-196-120/+97
| | | | | | | | | | | | - Use Qt 5 connection syntax - Use a QDialogButtonBox instead of a single button in the service dialog - Forward-declare the UI classes - Streamline code Pick-to: 6.2 Change-Id: I30db78043a8e3a62ea10223252a59b8415296e55 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Remove float => double truncation compilation warning on MSVCJuha Vuolle2021-09-171-7/+7
| | | | | | | | Explicitly declare numbers stored to floats as floats Pick-to: 6.2 Change-Id: Id1e9d5a5e393dbad0c0fec7aac3083d6e62403cc Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Bluetooth (examples): update CMakeLists.txt to include Info.plistTimur Pocheptsov2021-09-104-0/+26
| | | | | | | | Pick-to: 6.2 Change-Id: I87097dc605ff34db1f8d7fb92d055402693906e1 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* Remove error messages on lowenergyscanner example app exitJuha Vuolle2021-09-092-6/+6
| | | | | | | | | | | | | The QML View was created on heap and outlived the 'device' context property on stack. This resulted in distracting 'null' property access errors on exit. In addition remove unnecessary QML import versioning. Pick-to: 6.2 Change-Id: I5cb7d219582ef8e9a72a3f7e514e78fb16a54e2f Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Andreas Buhr <andreas.buhr@qt.io>
* QtBluetooth (examples): add Info.plist for iOSTimur Pocheptsov2021-09-092-0/+43
| | | | | | | | | btscanner example can be built and deployed on iOS, but then it requires special entries in its Info.plist, explaining the usage of BT adapter. Pick-to: 6.2 5.15 Change-Id: I86edfe84a19f4da8173bb5374fb10e55811a4b20 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* CoreBluetooth: provide a description (in Info.plist) of BT usageTimur Pocheptsov2021-09-092-0/+41
| | | | | | | | | | | Our lowenergyscanner example can be built and deployed on iOS device. As such, it has to provide an explanation, why it needs an access to BT adapter, otherwise, it would crash with the most recent versions of iOS. Pick-to: 6.2 5.15 Change-Id: Iebcdf8af931002532aada0c452263effd342300e Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Heart-rate example: add a proper Info.plistTimur Pocheptsov2021-09-074-0/+90
| | | | | | | | | | | Apple (iOS) requires a "proper" Info.plist entries, explaining _why_ we want to use Bluetooth on this particular device. So, let's add it. Both the server and game apps need it. Fixes: QTBUG-93991 Pick-to: 5.15 6.2 Change-Id: I09133c6714f30bc402049cd40969a9b9644a0b4f Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Raise cmake_minimum_required to VERSION 3.16 in examplesJoerg Bornemann2021-08-178-8/+8
| | | | | | | | Pick-to: 6.2 Task-number: QTBUG-95636 Change-Id: I2ae5ba6164cb5ed450c8924d484d30167461c10d Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* QtNFC: fix AndroidManifest files for the examplesIvan Solovev2021-07-212-64/+0
| | | | | | | | | | | | | | After the recent change in qtbase, the AndroidManifest.xml files became much smaller. As a drawback, the example projects no longer compile with the old manifest files. This patch removes all the unneeded data from the manifest files of the QtNFC examples, and make them compile under Android again. Pick-to: 6.2 Change-Id: I93a338e103950eabb9105efda61b6564de116428 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Fix wrong image in QML pingpong example documentationAndreas Buhr2021-06-242-1/+1
| | | | | | | | | | Because of a name clash, a wrong image was shown in the documentation of the QML pingpong example. This patch changes the filename to prevent the name clash. Fixes: QTBUG-94192 Change-Id: I4e27b4b9a05efe9c1766a256305ead16a09fa9c7 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* Increase timeout of lowenergyscannerAndreas Buhr2021-06-141-1/+1
| | | | | | | | | | The low timeout of five seconds leads to lots of frustration. This patch extends to 25 seconds, which is most of the time long enough. Pick-to: 6.2 Change-Id: I2157ac0e794011a65e306dd7451e35e1bc0e7c8d Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* AnnotatedUrl: add QNdefFilter supportIvan Solovev2021-06-147-7/+72
| | | | | | | | | Update the example to show the usage of QNdefFilter. Task-number: QTBUG-94033 Pick-to: 6.2 Change-Id: I41b463bcf41bd3f4cb5b60981d9e3a89f7622531 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* NdefEditor: update UI for better usability on mobile platformsIvan Solovev2021-06-1411-54/+266
| | | | | | | | | | | | | | | * Add QScroller to grab touch gesture. This allows to avoid aiming to the tiny verticall scroll bar, but use simple swipes instead. * Handle input method visibility change to ensure that the focused widget is visible while the keyboard is displayed. * Correctly scale the image for the MIME record, so that it does not cause the whole layout to shirink beyond the screen margins. * Update the example docs. Task-number: QTBUG-94033 Pick-to: 6.2 Change-Id: I7ce3fe1f6c573a3ad24da16c7a11508342a2de9d Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* AnnotatedUrl: refactor UIIvan Solovev2021-06-115-92/+98
| | | | | | | | | | | | | | | | | | | | This patch refactors the UI layout, so that it handles screen rotation correctly. The *.ui files are removed. The layout is created directly from the source code instead. The application now has two different labels to show the icon. Depending on the actual screen orientation, one of them shows the icon, and the other is hidden. The icon is properly scaled before it's shown, so that the layout does not expand beyond the visible screen rectangle. Also this patch introduces a code that handles screen orientation change, and the screen change (in case the application is dragged to the other monitor). The latter is not really applicable to mobile devices though. Task-number: QTBUG-94033 Pick-to: 6.2 Change-Id: I0d7d781bd2b97e16f7fba530eeffd407c7eaff61 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* AnnotatedUrl: handle adapter stateIvan Solovev2021-06-096-5/+43
| | | | | | | | | | | Extend the AnnotatedUrl example application to handle adapter state changes. This allows to correctly handle NFC enabling and disabling, while the application is running. Task-number: QTBUG-94033 Pick-to: 6.2 Change-Id: I9978436b98a772db256e12cfd41072c3b6286b88 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Remove AndroidExtras dependencies and port to new Qt 6 Android APIsVille Voutilainen2021-06-046-25/+4
| | | | | | | | | Task-number: QTBUG-93811 Change-Id: Ia3eb9ad90f27614db5997e1f41f13e050f5f4ab7 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Rami Potinkara <rami.potinkara@qt.io> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Andreas Buhr <andreas.buhr@qt.io>
* Make QLECharacteristic::handle() and QLEDescriptor::handle() privateAndreas Buhr2021-06-032-7/+0
| | | | | | | Task-number: QTBUG-62877 Task-number: QTBUG-94138 Change-Id: Id8c98e267c9b16f77a63f63f41638efbe627acaa Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Update Annotated URL exampleIvan Solovev2021-05-3110-20/+161
| | | | | | | | | | | This patch updates Annotated Url NFC example to support automatic application startup, when running on Android. The example documentation is also extended to cover this case. Task-number: QTBUG-94033 Change-Id: Iec94e5e97bc13e5083842838c78f4e988d8c5f70 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* QtNFC: remove QNearFieldTarget::ndefMessagesWritten signalIvan Solovev2021-05-273-8/+10
| | | | | | | | | | | | | | ndefMessagesWritten signal basically duplicates the requestCompleted signal, but does not provide a request id parameter to track, which messages were actually written. Given that, the signal is removed. One should now use requestCompleted and check the request id instead. [ChangeLog][QtNFC][QNearFieldTarget] Remove ndefMessagesWritten signal. Use requestCompleted signal instead. Task-number: QTBUG-93854 Change-Id: Ic7f97eabfa83879b0da0cf34310a2982621cf8de Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Doc: Fix documentation warningsTopi Reinio2021-04-301-2/+1
| | | | | | | | | | | | | * Restore (parts of) snippets.pro files for quoting in the documentation * Remove references to removed method, QNearFieldManager::registerNdefMessageHandler() Task-number: QTBUG-91875 Change-Id: Ib88c71da3426826b379832003a29fffc255aaaf5 Reviewed-by: Andreas Buhr <andreas.buhr@qt.io> Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Fix binary name clash with qtscxml exampleAlex Blasche2021-04-261-7/+8
| | | | | | | | See qtscxml/examples/statemachine/statemachine/pingpong for reference Fixes: QTBUG-92985 Change-Id: I00c2cb39d0f72be0790e55ce31419c5883b34e32 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Change QLowEnergyService::ServiceState enum to reflect future changesAndreas Buhr2021-04-083-9/+9
| | | | | | | | | | | | In the future, discoverDetails() should become optional. The state of a QLowEnergyService after its creation should have a name which does not imply it is not functional yet. This patch changes the name of the initial state from "DiscoveryRequired" to the neutral "RemoteService". Task-number: QTBUG-75340 Change-Id: Ib407e60f5fc7264a04a124561dacbcebb01bf252 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* rename error signals to errorOccurredAndreas Buhr2021-03-225-20/+15
| | | | | | | | | | | Currently, there is a name clash between the error getter and the error signal. This leads to extensive use of qOverload or similar. This patch renames all error signals to errorOccurred to resolve this. Task-number: QTBUG-62877 Change-Id: I615e2405f855433b6e142d820072c4d3f35ae28f Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Decouple QBluetoothSocket and QAbstractSocket, introduce scoped enumsAndreas Buhr2021-03-121-2/+2
| | | | | | | | | | | QBluetoothSocket enum values were tied to QAbstractSocket enum values. But there is no dependency, the coupling is not required. This patch removes the coupling and changes to scoped enums for improved type safety. Task-number: QTBUG-62877 Change-Id: I206b1d438d74b976d3e0d32da5713d22b597dd90 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Update screenshots in QtBluetooth Example documentationAndreas Buhr2021-03-114-0/+0
| | | | | Change-Id: Ie0f602e875604f592bc689f6f3ecc00133e9960f Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Use scoped enum for constants in QBluetoothUuidAndreas Buhr2021-03-115-17/+17
| | | | | | | | | | | | QBluetoothUuid contains enums for ProtocolUuid, ServiceClassUuid, CharacteristicType and DescriptorType. So far, they all put their constants directly into the QBluetoothUuid namespace, making it easy to mix them up. This patch changes those to scoped enums. That way, each enum has its items in its own namespace. Change-Id: I86ea08ff31009dc8073d84cfe678e27920d693f7 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Pingpong example: update documentationAndreas Buhr2021-03-111-5/+5
| | | | | | | | | This patch updates the documentation of the pingpong example to the changes made. Change-Id: I4ebe3848b71a8edb61fd359a8d8d2af9c05494c8 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Pingpong example: Add convex paddles and speedupAndreas Buhr2021-03-051-2/+50
| | | | | | | | | | Game logic of the pingpong example was a bit boring, because the angle of the ball never changed. This patch adds convex paddles. The surface of the paddle is simulated to be a quarter of a circle. Also, in each reflection, the speed of the ball increases. Change-Id: I208e7322f2b4b849118d98959a6076458d20f409 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Pingpong example: Restart game at endAndreas Buhr2021-03-051-8/+11
| | | | | | | | | To play again, it was necessary to restart the whole executable. This patch restarts the game at the end so that players can keep playing. Change-Id: I593a57862d449631d8f93b7d8e3cb56314f4fedd Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Pingpong example: Gamelogic works on unit squareAndreas Buhr2021-03-053-138/+66
| | | | | | | | | | The two parties playing pingpong agreed on a screen size in the past. This patch changes the logic to work on the unit square (0,1)x(0,1). Visualization scales this up to window size. This patch also simplifies the position update loop Change-Id: Ie89b1eaa5fc14daf6b56cd42458a16ae0a923568 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Pingpong example: User 600x600 window by default, fullscreen on mobileAndreas Buhr2021-03-032-4/+4
| | | | | | | | | With this patch, the pingpong example no longer forces the use of a 600x300 window on mobile devices, which led to a suboptimal user experience. Change-Id: I2365542bc8d5f99d015499f9b7e8c14ec5a93237 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Pingpong example: enlarge MouseArea for paddlesAndreas Buhr2021-03-031-2/+6
| | | | | | | | On some devices, it was hard to grab the paddles. This patch enlarges the mousearea to easier grab the paddles. Change-Id: I10d15b7605521d6a8d7775e5b6b96bce61e44de4 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Pingpong example: use square area for playingAndreas Buhr2021-03-031-73/+82
| | | | | | | This patch adds an extra rectangle to keep the playing area square. Change-Id: I79a80c511eab8f0af44a98e5ff2ee74a88781fad Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Pingpong example: nicer ball visualizationAndreas Buhr2021-03-031-9/+3
| | | | | | | | Increase the ball by a factor of 2. Also remove NumberAnimation which was not working anyway. Correct radius. Change-Id: I4f0e5d50a7eb192a0743533f35e77809be77186a Reviewed-by: Alex Blasche <alexander.blasche@qt.io>