Solved Qt designer mixed fonts in QLabel
-
Hi,
I would like to have a QLabel with the following text:
So a mix of greek and arabic letters.
Is that possible?
-
Tank you.
As I'm using Windows 10, I used the Character map to get the unicode of theta.
Then I copy/paste in the QLabel in the designer and I get the theta character.Another way to do it directly in the Designer is to right click on the label and select Change rich text...
On the Source tab one can enter the html code of the character
This works fine also
-
@Bert59 QString is utf16 based. utf16 supports the greek alphabet.
So, as long as your font supports the letters, QLabel supports it too.
-
Thank you, but how can I enter a utf 16 code in a QLabel in the designer?
-
@Bert59 copy and paste should work fine :D
Usually the OS has special number keyboard you can call forth to copy past from or you use one online. Some OS support stuff like alt key + numpad numbers. etc.
You'll have to figure that out yourself, as QtCreator and QDesigner have no dedicated input panel for it
-
Tank you.
As I'm using Windows 10, I used the Character map to get the unicode of theta.
Then I copy/paste in the QLabel in the designer and I get the theta character.Another way to do it directly in the Designer is to right click on the label and select Change rich text...
On the Source tab one can enter the html code of the character
This works fine also