Qspice with a Latch in ¥-Device (which is not mentioned in Qspice help, but you can find its symbol in Behavioral > Analog > AnalogLatch