简体   繁体   中英

How to add superscript in PyQt5 combobox?

I try to add to combobox list of units with superscripts. One of these is cm^-1. How can I put it as text? self.cbUnit.addItems(["unit 1", "unit 2", "cm-1"])

找到解决方案。

self.cbUnit.addItems(["unit 1", "unit 2", "cm\⁻\¹"])

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM