I'm trying to add Unicode glyphs to a QAction. But, my attempts thus far are crashing my desktop (actually logging me out). How do I use Unicode characters in QActions?
I've tried directly in the IDE like so:
I've tried via Python (3.10.5) escape sequences, like so:
and finally, I've tried with
I've tried directly in the IDE like so:
QAction("• my string")
I've tried via Python (3.10.5) escape sequences, like so:
QAction("\u0394 my string")
and finally, I've tried with
QObject.tr()
, like so:str = QObject.tr("\u0394 my string") QAction(str)How do I pass unicode characters to a QAction? I don't want crashes, now-what-i-mean.