REQUIRED TO USE QT AND CMAKE (ONLY C++ code wont be sufficient)
include (.cpp , .h, ui and cmake text files as well)
Write a four-function calculator with Qt framework.
Five operations should be implemented, which are addition (+), subtraction (-), multiplication (*),
division (/) and equal (=).
Also implement the ‘clear’ function in the calculator to clean the previous result.
All operators should be supported by both buttons on the program and the keyboard
Add one new operation to the calculator. You can refer to the Scientific Calculator of Windows.
It should also support button clicking and keyboard input.
Expert Answer
The code is given below :