博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年12月27日

摘要: tr()The tr() function calls around the string literals mark them for translation to other languages. The function is declared in QObject and every subclass that contains the Q_OBJECT macro. It's a good habit to surround user-visible strings with tr(), even if you don't have immediate plans f 阅读全文

posted @ 2012-12-27 13:59 星尘的天空 阅读(193) 评论(0) 推荐(0) 编辑

摘要: QT中的关键字signalsThe signals keyword is actually a macro. The C++ preprocessor converts it into standard C++ before the compiler sees it.THE END!2012年12月27日 阅读全文

posted @ 2012-12-27 13:40 星尘的天空 阅读(111) 评论(0) 推荐(0) 编辑

摘要: Q_OBJECTThe Q_OBJECT macro at the beginning of the class definition is necessary for all classes that define signals or slots.THE END!2012年12月27日 阅读全文

posted @ 2012-12-27 13:36 星尘的天空 阅读(135) 评论(0) 推荐(0) 编辑