The best-known works of literature from the 17th-18th centuries attest to the presence of gay, bisexual, asexual and trans characters in Qing China.