I have a string in PYQT5 that I'm loading into a QLabel() that contains less than and greater than symbols. The output is omitting the symbols and everything in between them. Is there a way to output this string as-is?
from PyQt5.QtWidgets import *
import sys
class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.setGeometry(100, 100, 400, 400)
self.centralWidget = QWidget()
self.setCentralWidget(self.centralWidget)
self.label = QLabel()
self.vLayout = QVBoxLayout()
self.vLayout.addWidget(self.label)
self.centralWidget.setLayout(self.vLayout)
myString = 'Supply Issue < 20 VDC when Speed > 100 MPH'
num = '10'
self.label.setText(f'<font color = "#E4551F">{num}:</font> {myString}')
app = QApplication(sys.argv)
myWin = MainWindow()
myWin.show()
app.exec()
'''