Search code examples
pythonpyside2

How do you create a list of bullet points in a QLabel?


Using Python and PySide2, how do you create a list of bullet points in a QLabel widget?


Solution

  • You can use HTML for this.

    label.setText("<html><ul><li>Coffee</li><li>Tea</li><li>Milk</li></ul></html>")