Styled QGraphicsTextItem example
- PyQt5 >= 5.8
pip3 install git+https://github.com/yjg30737/pyqt-styled-graphics-text-item-example.git --upgrade
Code Sample
from PyQt5.QtWidgets import QApplication
from pyqt_styled_graphics_text_item_example import StyleGraphicsTextItemExample
if __name__ == "__main__":
import sys
app = 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.
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.
- pyqt-textbox-graphics-widget - This is based on
QGraphicsWidget
.