Skip to content

Client Server application sample that fetch currency data and provide a representation in a QtChart

License

Notifications You must be signed in to change notification settings

arrabyte/QtExchangeDemo

Repository files navigation

QtExchangeDemo

This is just a test to some of the following Qt topics as:

  • QtThread
  • QTcpServer, QTcpSocket and how to hanlde client server communication by json messages
  • QJsonDocument
  • QtChart

QtExchangeDemo fetch data of the currency exchange between Euro and Ethereum, future improvements should allow more customization and fetch more data, but at the moment is not the scope of the application.

The QtExchangeDemo run starting a thread ( the exchange server ) that fetch json data from an host and get currency change values.

Furthermore the thread server expose an interface (json messages) that allows to handle server configuration and data by a tcp client.

The client class is the backend for the UI that represent fetched data on a Qt Chart widget.

The exchange server run inside the same process as a separated thread but data exchanges take place by messages sent by a tcp socket therefore a separation of server and client would be the best option... maybe future implementations.

Installation

cd QtExchangeDemo

qmake

make

Run

just launch ./QtExchangeDemo

About

Client Server application sample that fetch currency data and provide a representation in a QtChart

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published