In this example, we will learn how to create a simple currency converter using Qt, with the help of an external service provider called
How to do it…
Make yourself a currency converter with these simple steps:
- We start by opening Qt Creator and creating a new Qt Widgets Application project from File | New File or Project.
- Next, open up the project file (
.pro) and add the network module to our project:
QT += core gui network
- After that, open up
mainwindow.uiand remove the menu bar, tool bar, and status bar from the UI.
- Then, add three horizontal layouts, a horizontal line, and a push button to the canvas. Once they're all placed, left-click on the canvas and follow by clicking the Lay Out Vertically button above the canvas. ...