自己摸索了很长一段时间才搞懂,珍惜劳动成果,转载请注明出处,3Q。
http://www.datouinfo.com/?p=18
1、首先在官网上下载:
http://qt-apps.org/content/show.php?content=72850&forumpage=0
2、解压;
3、使用qt-creator打开工程项目.pro文件,并编译。编译的时候会报错误。
Warning: The name 'layoutWidget' (QWidget) is already in use, defaulting to 'layoutWidget1'.
解决的办法是:
Open the .ui file using a text editor (*not Qt Designer*) and do a search for "layoutWidget". You should find it twice. Change the name of one to something unique