摘要: 1 void showSplash(void)2 {3 QSplashScreen*splash=newQSplashScreen;4 splash->setPixmap(QPixmap(":/img/aa.png"));5 splash->show();6 splash->showMessage(QObject::tr("loading..."),Qt::AlignHCenter|Qt::AlignVCenter,Qt::white);splash->finish(&w);7 delete splash;8 } 阅读全文
posted @ 2014-03-08 12:17 自由出土文物 阅读(234) 评论(0) 推荐(0) 编辑
摘要: testDll和testExe项目备注:windows下dll内不需要newQApplication,linux和mac下面需要在动态库里面newQApplicationtestdll.h 1 #ifndef TESTDLL_H 2 #define TESTDLL_H 3 4 #include"testDll_global.h" 5 6 extern "C" TESTDLLSHARED_EXPORT void initApp(void); 7 extern "C" TESTDLLSHARED_EXPORT void showDlg(v 阅读全文
posted @ 2014-03-08 12:13 自由出土文物 阅读(1510) 评论(0) 推荐(0) 编辑
摘要: include目录只需要添加外面的总目录就可以了,qt creator会自动解析给出详细的提示,这点比assist貌似要好如果include目录里面有空格,这样处理INCLUDEPATH+=$$quote(C:\boost 144 0)静态库需要一个个添加,很好很强大LIBS+=C:\boost_1_44_0\bin.v2\libs\regex\build\msvc-9.0\debug\link-static\threading-multi\libboost_regex-vc90-mt-gd-1_44.lib 阅读全文
posted @ 2014-03-08 12:08 自由出土文物 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 最简单的方法,使用QT自带的命令:macdeployqt appname.app -verbose=1 -dmgmacdeployqt路径:/Qt/Desktop/Qt/4.8.0/gcc/bin/macdeployqtmacdeployqt的路径建议添加到环境变量里面vim ~/.profile#添加一行export PATH=/Qt/Desktop/Qt/4.8.0/gcc/bin:$PATH :wq! 退出开个新的shell,生效~测试发现,debug的打包没问题,release的发布失败,看来还是先用debug版的吧 阅读全文
posted @ 2014-03-08 12:07 自由出土文物 阅读(987) 评论(0) 推荐(0) 编辑