Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 1.17 KB

README.md

File metadata and controls

37 lines (22 loc) · 1.17 KB

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