QStyledItemDelegate truncates text horizontally and doesn't add a horizontal scroll bar
问题 I got the following code, which I slightly modified, as an answer on how to use HTML formatted text in a QListWidget. main.ui <?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>Dialog</class> <widget class="QDialog" name="Dialog"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>341</width> <height>161</height> </rect> </property> <property name="windowTitle"> <string>Dialog</string> </property> <widget class="QWidget" name="verticalLayoutWidget"> <property name=