aboutsummaryrefslogtreecommitdiffstats
path: root/examples/serialbus/modbus/modbusclient
Commit message (Collapse)AuthorAgeFilesLines
* Update Qt Widgets Designer formsFriedemann Kleint2024-09-184-18/+18
| | | | | | | | Load and save once so that fully qualified enumerations are used. Task-number: PYSIDE-2846 Change-Id: I544467c1d9254533bf62e1344c26c90c7d17d118 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* type hints: Fix some typing bugs for mypy (forgiveness)Friedemann Kleint2024-09-181-7/+8
| | | | | | | | | | | | | The new enums still support old syntax by the forgiveness mode. Nevertheless, when using mypy to check files, strict correctness is enforced. We correct a large number of forgiveness-induced errors, but there is still a whole lot of other complaints to fix. Task-number: PYSIDE-2846 Change-Id: If566187d268ef75bc09b8d86f73d2c7d19f284f9 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* ModBus client example: Avoid keeping a reference to the QModbusReply in ↵Friedemann Kleint2024-06-281-9/+11
| | | | | | | | | | | | signal handling Use QObject.sender() instead of functools.partial to retrieve the reply. The callable stored in the signal manager then no longer references it. Pick-to: 6.7 Task-number: PYSIDE-2793 Change-Id: I43e9f393a7291944da0a7b0b310f8ff889d7906e Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* ModBus example: Fix default TCP portFriedemann Kleint2024-06-271-1/+1
| | | | | | | | | Use 50200 as does the C++ example, Pick-to: 6.7 6.5 Task-number: PYSIDE-2793 Change-Id: Ie827a1f0d3f3b0c0e2bf8ed4ffe343ac26f62275 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* Python-3.10: Allow the new syntax for Python 3.9Christian Tismer2024-06-204-0/+4
| | | | | | | | Add a future statement to all Python source files. Task-number: PYSIDE-2786 Change-Id: Icd6688c7795a9e16fdcaa829686d57792df27690 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* Examples: Update ui_*.py filesFriedemann Kleint2024-04-092-8/+8
| | | | | | | | As a drive-by, fix the resource file name of the PDF viewer example. Pick-to: 6.7 Change-Id: Ie86ee8d7ed538bc2e55018913b547add88f48efa Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Examples: Fix a number of flake8 errors (part 1)Adrian Herrmann2023-12-061-1/+1
| | | | | | | | | First batch, including low-hanging fruit like Alignments, whitespaces, line length, indents, etc. Pick-to: 6.6 Change-Id: I55966876077f7fddfdc82cbe376677af9995f329 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Examples: Fix some flake warningsFriedemann Kleint2023-11-281-1/+1
| | | | | | | | Mostly spacing related. Pick-to: 6.6 Change-Id: If0d5b25e1c60b7b216f970d1e57613f00bd04a37 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* examples: remove unused importsCristián Maureira-Fredes2023-04-051-1/+1
| | | | | | Change-Id: I88a7bb2fe91abcfdef6e6014b088d08c4e613893 Pick-to: 6.5 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Remove generated files from the example project filesFriedemann Kleint2023-03-231-1/+1
| | | | | | | Pick-to: 6.5 6.2 Task-number: PYSIDE-1106 Change-Id: Ic198a3ff73a82f4ad490fdb90d0a1aa839f5ebb2 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Add the modbus client exampleFriedemann Kleint2022-10-1816-0/+5528
Change-Id: Idf8e6a44333b64d4a50170350a95b5384500e304 Task-number: PYSIDE-841 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>