Skip to content

yjg30737/pyqt-styled-graphics-text-item-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

image

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