MyCalculator is a simple yet powerful cross-platform calculator application built with C++ and Qt6. It provides a clean graphical user interface (GUI) and goes beyond basic math by offering several real-time conversion tools.
- Calculator: Standard mathematical operations (
+,-,*,/) with keyboard support and backspace functionality. - Temperature Converter: Convert instantly between Celsius, Fahrenheit, and Kelvin.
- Number Base Converter: Seamlessly convert numbers between Decimal, Binary, Octal, Hexadecimal, and ASCII Text.
- Currency Converter: Real-time currency conversion (USD to IDR) using live exchange rates via the ExchangeRate-API.
- Smart Copy: Easily copy any conversion result to your clipboard with a single click of a button.
- Smart Auto-Swap: Automatically prevents source and destination conversion types from matching to speed up your workflow.
To compile and run this project, you will need:
- A C++17 compatible compiler (GCC, Clang, or MSVC)
- CMake (Version 3.16 or higher)
- Qt 6 (Specifically the
Core,Gui,Widgets, andNetworkmodules)
This project uses CMake as its build system. The output binary will be cleanly separated into a bin/ directory so it doesn't get mixed up with CMake cache files.
- Clone the repository:
git clone https://github.com/ItsMe-RiiK/MyCalculator.git cd MyCalculator - Create a build directory and compile:
mkdir build && cd build cmake .. make
- Run the application:
./bin/MyCalculator
- Clone the repository.
- Open the project folder in Visual Studio (which natively supports CMake).
- Allow Visual Studio to generate the CMake cache.
- Select your target (e.g.,
x64-Debugorx64-Release) and click Build. - Run
MyCalculator.exefrom your output directory.
This project is licensed under the MIT License - see the LICENSE file for details.