05 2013 档案

摘要:BASICQWidget 和 QMLQWidgets were designed for a different type of user interface than QML, so it is not always a good idea to port a QWidget-based application to QML.QWidgets are a better choice if your UI is comprised of a small number of complex and static elements.QML is a better choice if your UI 阅读全文
posted @ 2013-05-27 02:17 罗伊y 阅读(2565) 评论(2) 推荐(1) 编辑
摘要:Issue:在函数模板特化的过程中, 编译时遇到多重定义的错误; (VC2010和g++)以下是一个特化的例子:template <class T>T maxA( T t1, T t2 ) { return (t1 > t2 ? t1 : t2);}//特化 specializetypedef const char *PCC;template<> PCC maxA< PCC >( PCC s1, PCC s2 ) { return ( strcmp( s1, s2 ) > 0 ? s1 : s2 );}1)如果这段代码是添加在main.cpp里面 阅读全文
posted @ 2013-05-04 14:06 罗伊y 阅读(574) 评论(0) 推荐(0) 编辑