You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/PythonQtDoc.h
+30-24Lines changed: 30 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@
46
46
\if USE_GLOBAL_DOXYGEN_DOC
47
47
\page PythonQtPage PythonQt Overview
48
48
\else
49
-
\mainpage PythonQt Overview
49
+
\mainpage PythonQt
50
50
\endif
51
51
52
52
\section Introduction
@@ -66,14 +66,9 @@
66
66
Image Processing and Visualization platform MeVisLab (http://www.mevislab.de)
67
67
scriptable from Python.
68
68
69
+
\page Features Features
69
70
70
-
\section Download
71
-
72
-
PythonQt is hosted on SourceForge at http://sourceforge.net/projects/pythonqt , you can access it via SVN
73
-
or download a tarball.
74
-
75
-
76
-
\section Features
71
+
\section Builtin Built-in Features
77
72
78
73
The following are the built-in features of the PythonQt library:
79
74
@@ -96,7 +91,7 @@
96
91
- Extensible handler for Python/C++ conversion of complex types, e.g. mapping of QVector<SomeObject> to/from a Python array
97
92
- Setting of dynamic QObject properties via setProperty(), dynamic properties can be accessed for reading and writing like normal Python attributes (but creating a new property needs to be done with setProperty(), to distinguish from normal Python attributes)
98
93
99
-
\section FeaturesQtAll Features (with PythonQt_QtAll linked in)
94
+
\section FeaturesQtAll Features with wrapper generator
100
95
101
96
Thanks to the new wrapper generator, PythonQt now offers the additional PythonQt_QtAll library which wraps the complete Qt API, including all C++ classes and all non-slots on QObject derived classes.
102
97
This offers the following features:
@@ -118,9 +113,20 @@
118
113
- Polymorphic downcasting on QEvent, QGraphicsItem, QStyleOption, ...
119
114
- Multiple inheritance support (e.g., QGraphicsTextItem is a QObject AND a QGraphicsItem, PythonQt will handle this well)
120
115
121
-
122
-
\section Licensing
116
+
\page Download Download
117
+
118
+
PythonQt is hosted on SourceForge at http://sourceforge.net/projects/pythonqt.
119
+
120
+
You can download the source code as a tarball at http://sourceforge.net/projects/pythonqt/files/.
121
+
Alternatively you can get the latest version from the svn repository.
122
+
123
+
You can also browse the source code online via ViewVC: http://pythonqt.svn.sourceforge.net/viewvc/pythonqt/trunk/
123
124
125
+
\note We do not offer prebuilt binaries, since there are so many possible combinations of
126
+
platforms (Windows/Linux/MacOs), architectures (32/64 bit) and Python versions.
127
+
128
+
\page License License
129
+
124
130
PythonQt is distributed under the LGPL license, so it pairs well with the LGPL of the Qt 4.5 release and allows
125
131
to be used in commercial applications when following the LGPL 2.1 obligations.
126
132
@@ -138,7 +144,6 @@
138
144
You may use the generator to generate C++ bindings for your own C++ classes (e.g., to make them inheritable in Python),
139
145
but this is currently not documented and involves creating your own typesystem files (although the Qt Jambi examples might help you).
140
146
141
-
142
147
\section Comparison Comparison with PyQt/PySide
143
148
144
149
- PythonQt is not as pythonic as PyQt in many details (e.g. buffer protocol, pickling, translation support, ...) and it is mainly thought for embedding and intercommunication between Qt/Cpp and Python
@@ -154,7 +159,9 @@
154
159
- Probably there are lots of details that differ, I do not know PyQt that well to list them all.
155
160
- In the long run, PythonQt will consider using/extending PySide with the features of PythonQt to get rid of its own generator and typesystem files, alternatively the KDE Smoke generator might be used in the future (this has not yet been decided, the current PythonQt generator works well and there is no hurry to switch).
156
161
157
-
\section Interface
162
+
\page Developer Developer
163
+
164
+
\section Interface Interface
158
165
159
166
The main interface to PythonQt is the PythonQt singleton.
160
167
PythonQt needs to be initialized via PythonQt::init() once.
@@ -393,7 +400,7 @@ yourCpp = None
393
400
394
401
\endcode
395
402
396
-
\section Building
403
+
\page Building Building
397
404
398
405
PythonQt requires at least Qt 4.6.1 (for earlier Qt versions, you will need to run the pythonqt_gerenator, Qt 4.3 is the absolute minimum) and Python 2.5.x or 2.6.x on Windows, Linux and MacOS X. It has not yet been tested with Python 3.x, but it should only require minor changes.
399
406
To compile PythonQt, you will need a python developer installation which includes Python's header files and
@@ -473,12 +480,12 @@ the python2x.[lib | dll | so | dynlib].
473
480
474
481
There is a unit test that tests most features of PythonQt, see the \b tests subdirectory for details.
475
482
476
-
\section Examples
483
+
\page Examples Examples
477
484
478
485
Examples are available in the \b examples directory. The PyScriptingConsole implements a simple
479
-
interactive scripting console that shows how to script a simple application.
486
+
interactive scripting console that shows how to script a simple application. The PyLauncher application can be used to run arbitrary PythonQt scripts given on the commandline.
480
487
481
-
The following shows how to integrate PythonQt into you Qt application:
488
+
The following shows a simple example on how to integrate PythonQt into your Qt application:
482
489
483
490
\code
484
491
#include "PythonQt.h"
@@ -491,22 +498,21 @@ the python2x.[lib | dll | so | dynlib].
0 commit comments