Issue
I am writing a gui for an executable. My first one was written using Python and TKinter. It worked. Now I am working on version 2, and I want to do it in QT4. I found the Qt Designer which is really helpful for creating the layout etc.
I created a QLabel, and in there I want it to display a greek Gamma Symbol.
But how? I did not find any way to do this. There is a button I can press and there appears to be an option to write "source code". But what does it accept? I tried different methods:
- u"\u03B3"
γ
- and a couple more.
If I write the &, the text changes its color to red, in the source code editor. But it will still just display the text I typed in.
Is this at all possible, or I just write some placeholder and then change it to Gamma in the python code itself?
Thx.
Solution
QLabel
supports HTML, for this you must right click and select the option Change rich text...
and in the tab source
place html code:
<p>γ</p>
That is, within the tags <p> </p>
obtaining the following:
Answered By - eyllanesc
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.