ソースを参照

添加Qt通用类介绍

cwc1987 9 年 前
コミット
02f8afc71b
2 ファイル変更7 行追加0 行削除
  1. 1 0
      SUMMARY.md
  2. 6 0
      qt_and_c++/common_qt_classes.md

+ 1 - 0
SUMMARY.md

@@ -108,6 +108,7 @@
    * [编译系统(Build Systems)](qt_and_c++/build_systems.md)
    * [编译系统(Build Systems)](qt_and_c++/build_systems.md)
        * [QMake](qt_and_c++/qmake.md)
        * [QMake](qt_and_c++/qmake.md)
        * [CMake](qt_and_c++/cmake.md)
        * [CMake](qt_and_c++/cmake.md)
+   * [Qt通用类(Common Qt Classes)](qt_and_c++/common_qt_classes.md)
 * [其它(Other)](other/README.md)
 * [其它(Other)](other/README.md)
    * [协作校正](other/collaboration_correction.md)
    * [协作校正](other/collaboration_correction.md)
 
 

+ 6 - 0
qt_and_c++/common_qt_classes.md

@@ -0,0 +1,6 @@
+# Qt通用类(Common Qt Classes)
+
+类```QObject```组成了Qt的基础,但是在这个框架里还有很多的类。在我们继续探寻如何扩展QML之前,我们需要先了解一些有用的Qt基础类。
+
+在这一节中的示例代码需要使用Qt Test库。它提供一种非常好的方法来测试Qt的API并将其存储供以后参考使用。测试库提供的```QVERIFY```与```QCOMPARE```函数断言一个正确条件。我们也将使用域来避免名称校验冲突。所以不要对后面的代码有困惑。
+