aboutsummaryrefslogtreecommitdiffstats
path: root/doc/extras
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-03-03 18:56:26 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:54:02 -0300
commit3798c8718c277d856562829d8326bb7cced0d84a (patch)
treef82e68bbf5e725503ad1e048bd3ae179974e4e21 /doc/extras
parent11042fdbaac58bbab03eb76d849186796cb30c44 (diff)
More code snippets ported to Python.
Diffstat (limited to 'doc/extras')
-rw-r--r--doc/extras/PySide.QtTest.rst7
-rw-r--r--doc/extras/PySide.QtUiTools.rst9
2 files changed, 16 insertions, 0 deletions
diff --git a/doc/extras/PySide.QtTest.rst b/doc/extras/PySide.QtTest.rst
new file mode 100644
index 000000000..d5963cb5a
--- /dev/null
+++ b/doc/extras/PySide.QtTest.rst
@@ -0,0 +1,7 @@
+To include the definitions of the module's classes, use the following directive:
+
+::
+
+ import PySide.QtTest
+
+.. note:: All macros in the C++ version of QtTest were not binded in PySide, this module is useful only for GUI testing and benchmarking, for ordinary unit testing you should use the ``unittest`` Python module.
diff --git a/doc/extras/PySide.QtUiTools.rst b/doc/extras/PySide.QtUiTools.rst
new file mode 100644
index 000000000..c8558f2d1
--- /dev/null
+++ b/doc/extras/PySide.QtUiTools.rst
@@ -0,0 +1,9 @@
+These forms are processed at run-time to produce dynamically-generated user interfaces. In order to generate a form at run-time, a resource file containing a UI file is needed.
+
+A form loader object, provided by the QUiLoader class, is used to construct the user interface. This user interface can be retrieved from any QIODevice; for example, a QFile object can be used to obtain a form stored in a project's resources. The :meth:`PySide.QtUiTools.QUiLoader.load` function takes the user interface description contained in the file and constructs the form widget.
+
+To include the definitions of the module's classes, use the following directive:
+
+::
+
+ import PySide..QtUiTools