diff --git a/README.md b/README.md index c18de3e..109c94e 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ These PyQt examples teach you to create a desktop app with Python. Start with "[ | :--: | :--: | :--: | :--: | | QML Python example | Qt Text Editor | Packaging & deployment | Qt Dark Theme | -| QPainter Python example | PyQt Thread example | QTreeView example in Python | PyQt5 QListView | +| QPainter Python example | PyQt Thread example | QTreeView example in Python | PyQt5 QListView | | :--: | :--: | :--: | :--: | | Action Shooter | Chat Client | Tree Views | Lists | diff --git a/src/10 QPainter Python example/README.md b/src/10 QPainter Python example/README.md index cba69db..80db4b0 100644 --- a/src/10 QPainter Python example/README.md +++ b/src/10 QPainter Python example/README.md @@ -2,7 +2,7 @@ This example application demonstrates how you can use [`QPainter`](https://doc.qt.io/qt-5/qpainter.html) to perform custom rendering in a widget. It turns the text editor from [example 7](../07%20Qt%20Text%20Editor) into an action shooter: When you click inside the editor with the mouse, bullet holes appear. -

QPainter Python Example

+

QPainter Python Example

The crucial steps of this example are to [override `mousePressEvent(...)`](main.py#L13-L17) to handle the user's clicks, and [`paintEvent(...)`](main.py#L18-L22) to draw the bullets. See the top of [`main.py`](main.py) for how these features work in detail. diff --git a/src/10 QPainter Python example/qpainter-python-example.png b/src/screenshots/qpainter-python-example.png similarity index 100% rename from src/10 QPainter Python example/qpainter-python-example.png rename to src/screenshots/qpainter-python-example.png