There appears to be no work towards Qt6 yet. Maybe upstream need to be made aware of the need to port.
Really, users of this package should answer at https://github.com/grzegorzmazur/yacas/issues/361
CCing previously involved parties.