Skip to content

pjanku/MPP_TaxCalculator

Repository files navigation

TaxCalculator example app

This repository contains a simple example application built using Qt 6. Its main purpose is to showcase the capabilities of the QtWidgets framework, focusing on the GUI designer, translations, resource management, and dedicated application settings storage handling.

This example is NOT a set of best practices or examples of UI design guidelines!

Relevant Links:

Přepočet souřadnice v ose Z

🔨 How to use this example

To start with this example, make sure you have Qt installed on your system. Once Qt is installed, follow these steps:

  1. Open the CMakeLists.txt file, either in Qt Creator or any other preferred IDE that supports CMake.
  2. Configure and compile the project using your chosen IDE's build process.
  3. After compilation, you should be able to run the application to see the QtWidgets features in action.

For more details on compiling with CMake, you can refer to the CMake Documentation.

🌐 Multilingual Support

The following steps, including project confirmations, can be applied to Qt 6.7 and newer. Older versions can require CMake file modifications!

Qt library supports a multilanguage environment by applying a set of configurations and using two external tools: lupdate and lrelease.

The steps necessary to develop multilanguage application are:

  1. Modify the CMakeLists.txt
  2. Generate translation files by calling lupdate (or enable corresponding build steps in the configuration of your IDE)
  3. Translate the string by using QLinquist app or by any text editor
  4. Compile your application
  5. Implement business logic to switch languages
   //mainwindow.h 
   QTranslator translator;
   
   //mainwindow.cpp
   if (translator.load(":/i18n/SimpleTaxCalc_en.qm"))
      QCoreApplication::installTranslator(&translator);
   ui->retranslateUi(this);

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published