How to do it...

Make yourself a currency converter with these simple steps:

  1. Open Qt Creator and create a new Qt Widgets Application project from File | New File or Project.
  2. Open the project file (.pro) and add the network module to our project:
QT += core gui network
  1. Open mainwindow.ui and remove the menu bar, toolbar, and status bar from the UI.
  2. Add three horizontal layouts, a horizontal line, and a push button to the canvas. Left-click on the canvas and continue by clicking the Lay Out Vertically button on top of the canvas. Set the label of the push button to Convert. The UI should look something like this:
  1. Add two labels to the top ...

Get Qt5 C++ GUI Programming Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.