BC-Math Adapted to Qt5