@@ -18,24 +18,50 @@ What is PythonQt ?
18
18
PythonQt is a dynamic Python binding for Qt. It offers an easy way to embed the Python
19
19
scripting language into your Qt applications.
20
20
21
- Prerequisites
22
- -------------
21
+ Which branch ?
22
+ --------------
23
+
24
+ Based on the Qt version your project is expected to support, you could use
25
+ one of the branch referenced below:
26
+
27
+ | Supported Qt version | 4 | 5 |
28
+ | ------------------------| ------------------------| ------------------------|
29
+ | Branch | [ patched-6] [ patched-6 ] | [ patched-8] [ patched-8 ] |
30
+ | Base PythonQt revision | [ r403] [ r403 ] | [ r455] [ r455 ] |
31
+
32
+
33
+ [ patched-6 ] : https://github.com/commontk/PythonQt/tree/patched-6
34
+ [ r403 ] : http://sourceforge.net/p/pythonqt/code/403/
35
+
36
+ [ patched-8 ] : https://github.com/commontk/PythonQt/tree/patched-8
37
+ [ r455 ] : http://sourceforge.net/p/pythonqt/code/455/
23
38
24
- * CMake
25
- * Qt 4 or 5
26
39
27
40
Build instructions
28
41
------------------
29
42
30
- 1 . Checkout sources
43
+ 1 . Install CMake and Qt
44
+
45
+ 2 . Checkout sources
31
46
32
47
```
33
48
git clone git://github.com/commontk/PythonQt.git
34
- mkdir PythonQt-build
35
- cd PythonQt-build
36
49
```
37
50
38
- 2 . Configure
51
+ 3 . Checkout branch
52
+
53
+ ```
54
+ git checkout -b patched-X origin/patched-X
55
+ ```
56
+
57
+ * See table above for exact branch name*
58
+
59
+
60
+ 4 . Configure
61
+
62
+ ```
63
+ mkdir PythonQt-build && cd PythonQt-build
64
+ ```
39
65
40
66
* using Qt4:
41
67
@@ -49,7 +75,7 @@ cmake -DQT_QMAKE_EXECUTABLE:FILEPATH=/path/to/qmake ../PythonQt
49
75
cmake -DQt5_DIR:PATH=/path/to/Qt5.X.Y/X.Y/compiler/lib/cmake/Qt5 ../PythonQt
50
76
```
51
77
52
- 3 . Build
78
+ 5 . Build
53
79
54
80
```
55
81
make
@@ -61,7 +87,7 @@ Additional configure options are:
61
87
* ` CMAKE_BUILD_TYPE ` : Debug, Release, RelWithDebInfo or MinSizeRel
62
88
* ` PythonQt_DEBUG ` : Enable/Disable PythonQt debug output
63
89
* ` PythonQt_Wrap_QtAll ` : Make all Qt components available in python
64
- * ` PythonQt_Wrap_Qt<componentname> ` : Build PythonQt wrapper associated with ` <componentname> ` . Possible ` <componentname> ` are ` gui ` , ` network ` , ` opengl ` , ` sql ` , ` uitools ` , ` webkit ` , ` xml ` , ` xmlpatterns ` .
90
+ * ` PythonQt_Wrap_Qt<componentname> ` : Build a specific PythonQt wrapper .
65
91
66
92
Available branches
67
93
------------------
@@ -72,11 +98,14 @@ This repository contains 8 branches:
72
98
* Based on [ r455] ( http://sourceforge.net/p/pythonqt/code/455/ ) with:
73
99
* revert of [ r444] ( http://sourceforge.net/p/pythonqt/code/444/ )
74
100
* all changes from `` patched-7 `` cherry-picked.
101
+ * add support for build wrapping for Qml and Quick components
102
+ * improve Qt5 support and remove Qt4 support
75
103
76
104
### patched-7
77
105
* Based on [ r443] ( http://sourceforge.net/p/pythonqt/code/443/ ) with:
78
106
* partial revert of [ r431] ( http://sourceforge.net/p/pythonqt/code/431/ ) to re-enable CMake support
79
107
* all changes from `` patched-6 `` cherry-picked.
108
+ * add Qt5 support
80
109
81
110
### patched-6
82
111
* Based on patched-5 + [ r403] ( http://sourceforge.net/p/pythonqt/code/403/ )
0 commit comments