What happened in early and middle Qing history