QWidget: Must construct a QApplication before a QPaintDevice的问题

卧槽,无意中编译自己基于Qt创建的Debug工程的时候运行时发生了标题中的错误,原来是把Qt Release的库也放到additional dependencies里面了,同时链接了Debug和Release的库,所以就。。。。还有一个原因是:http://no001.blog.51cto.com/1142339/278887

 

reference:

http://blog.csdn.net/lulinqing/article/details/10895401

http://www.cnblogs.com/piaoger/archive/2011/06/23/2088024.html

posted @ 2014-07-25 17:06  foo__hack  阅读(660)  评论(0编辑  收藏  举报