Jesper K. Pedersen
286 results
Implementing a SOAP Client Using KDSoap
24 October 2024
One of the standard communication protocols for web services is SOAP, which is basically XML over HTTP. I wrote an opensource library called KDSoap which makes it easy to do SOAP with Qt (both client-side and server-side). In this video you will see how, starting from a web service which provides a WSDL file to describe its API, KDSoap can generate code to make synchronous or asynchronous calls to the web service.
A very common communication protocol is REST, which is simply JSON over HTTP. Qt has all the building blocks for this, with QJsonDocument for JSON and QNetworkAccessManager for HTTP. In this video, you will see a real-world library that makes REST requests to a web service called TMDB (movie database), as an example.
Using a Thread to Make Blocking DBus Calls
9 October 2024
Implementing an async DBus Client
2 October 2024
Implementing a DBus Server
25 September 2024
This video shows how to implement a DBus server using Qt, in order to communicate between two processes. The benefits of using DBus include the fact that it's a standard communication protocol on Unix systems especially, and the ability for Qt to generate classes the client can use to make calls in a type-safe way. For now we'll test the server using the qdbus command-line client, the next video will show how to make calls from C++.
Using a thread to make blocking calls over a socket
18 September 2024
Communicating over a Qt Socket Using JSON
10 September 2024
In this video, you will learn how to use the JSON classes in Qt (5 or later) to implement a communication protocol between two processes. Special care is taken not to block the GUI thread in the graphical client application, using asynchronous handling only (via signals and slots, and a queue of pending requests).
In this video, you will learn how use Qt (5 or later) to develop a server and a client application which communicate using a local socket. You will learn how to handle the various issues that arise from systems made of multiple processes. For instance, what if the client tries to connect before the server is running? What if the server is restarted? What if the server crashes? What if the server is started twice?
Properties
14 August 2024
Class QVariant
13 August 2024
File Handling
12 August 2024
Qt offers a rather wide spectrum of classes for accessing contents of files, including reading and writing bytes to parsing XML, JSon, and CBor files. In addition to that, it also has useful API's for copying files, getting file information (like is it readable), and traversing whole directories. Learn about all that and more in this episode.
Container Classes
9 August 2024
Regular Expressions
8 August 2024
String Handling
7 August 2024
Git pre-commit
31 July 2024
Signal Throttlers
24 July 2024
Improve qDebug print out
17 July 2024
Main Windows
13 June 2024


