在qt中,QWidget不能再QApplication之前创建,否则会触发一个assert。 打算看看qt是如何实现的。 转载于:https://www.cnblogs.com/irichyoung/p/6130041.html