Skip to content

Commit b136d6f

Browse files
committed
Added note about removed functionality.
Layout improvements.
1 parent e0ca68c commit b136d6f

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
1-
# Simple example integrating OpenCascade 7.3.0 into QML (Qt 5.12)
2-
3-
![Example Screenshot](/img/screenshot.jpg "Example Screenshot")
1+
# Using OpenCascade in QtQuick 2
42

53
This project is a fork of the example project of [Anton Shabalin](https://github.com/ShabalinAnton), which was based on [Guiseppe D'Angelos](https://github.com/KDAB/integrating-qq2-with-opengl) QQ2/OpenGL example and the official OCCT AndriodQt sample code.
64

5+
<div style="text-align:center;">
6+
<img src="./img/screenshot.jpg" alt="Example Screenshot" />
7+
</div>
8+
9+
# Improvements
10+
711
The fork improves the example regarding the following points:
812

913
- Largely simplified codebase compared to the original version.
14+
- Switched implementation to use `QQmlApplicationEngine` and `ApplicationWindow`.
1015
- Support for recent versions of OpenCascade (7.3.0) and Qt (5.12).
1116
- Removed dependency on private headers (allows for dynamic linking).
1217
- Build tested in Visual Studio 2019 (vc150), 2017 (vc141) and Qt Creator (4.9.2).
1318

1419
Note that platforms other than Windows may require slight modifications, mainly replacing native calls to `wglGetCurrentDC` and `wglGetCurrentContext` and respective include of `<windows.h>` with appropriate APIs.
1520

21+
## Removed from original example
22+
23+
I've removed all mouse interactivity, to keep the example simple. It should be pretty straightforward to wire up the mouse events to OCCT transforms. The AndroidQt sample provides a good starting point.
24+
1625
## License
1726

1827
[GNU Lesser General Public License 3.0](./LICENSE)

0 commit comments

Comments
 (0)