Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yjg30737/pyqt-styled-graphics-text-item-example
Styled QGraphicsTextItem example
https://github.com/yjg30737/pyqt-styled-graphics-text-item-example
pyqt pyqt-examples pyqt5 pyqt5-examples pyqt5-tutorial python python3 python37 qgraphicsitem qgraphicsscene qgraphicstextitem qgraphicsview qt
Last synced: about 2 months ago
JSON representation
Styled QGraphicsTextItem example
- Host: GitHub
- URL: https://github.com/yjg30737/pyqt-styled-graphics-text-item-example
- Owner: yjg30737
- License: mit
- Created: 2022-02-08T02:17:12.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-10T04:29:37.000Z (about 3 years ago)
- Last Synced: 2024-12-29T08:42:11.525Z (about 2 months ago)
- Topics: pyqt, pyqt-examples, pyqt5, pyqt5-examples, pyqt5-tutorial, python, python3, python37, qgraphicsitem, qgraphicsscene, qgraphicstextitem, qgraphicsview, qt
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyqt-styled-graphics-text-item-example
Styled QGraphicsTextItem example## Requirements
* PyQt5 >= 5.8## Setup
```pip3 install git+https://github.com/yjg30737/pyqt-styled-graphics-text-item-example.git --upgrade```## Example
Code Sample
```python
from PyQt5.QtWidgets import QApplication
from pyqt_styled_graphics_text_item_example import StyleGraphicsTextItemExampleif __name__ == "__main__":
import sysapp = QApplication(sys.argv)
ex = StyleGraphicsTextItemExample()
ex.show()
sys.exit(app.exec_())
```Result

Note: The position of each boxes have nothing to do with code. I moved them to show result well to you.
## Note
This project wasn't going well. I want to make resizable ```QGraphicsTextItem``` but i came up with better idea than this, so this is just for an example to people who want to study about this. Maybe someday i will find ```QGraphicsTextItem``` useful to me but now? Not a chance.## See Also
* pyqt-textbox-graphics-widget - This is based on ```QGraphicsWidget```.