1

Tutorial4: Add images

Signed-off-by: Juraj Oravec <sgd.orava@gmail.com>
This commit is contained in:
Juraj Oravec 2019-05-23 23:09:15 +02:00
parent 6d3003313a
commit 367c2cbef9
No known key found for this signature in database
GPG Key ID: 63ACB65056BC8D07
3 changed files with 6 additions and 1 deletions

View File

@ -23,11 +23,16 @@ The parameter menu is the menu into which the new entry / action will be added.
msgBox.exec_()
```
![Extension menu](../images/Tutorial4/ExtensionMenu.png)
![Extension menu](../images/Tutorial4/MessageBox.png)
In this example the action will show messagebox[1] with 'Tutorial 4 - Message from extension menu'.
The full code can be found at [extensions/Tutorial4](../extensions/Tutorial4)
**Note:** Always create an instance of Action in `populateExtensionsMenu`.
It will be deleted / destroyed when the menu is hidden.
It will be deleted / destroyed when the menu is hidden.
Do **not** try to add keyboard shortcut to the action used to construct the menu, it will not work properly.
[1]: https://doc.qt.io/qtforpython/PySide2/QtWidgets/QMessageBox.html

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB