Unsolved Image difference between QT and raspberry touch screen
-
Hi,
There are differences between the qt images (fonts, shapes...) on ubuntu and raspberry pi touch screen. What is the reason of this and what can we do for solving this problem?On raspberry screen : http://imageshack.com/a/img633/6198/qt3U5N.png
On ubuntu qt creator : http://imageshack.com/a/img908/2184/eWgoKd.png -
Hi
The look is often set by the platform you are running on.you can try to set
http://doc.qt.io/qt-5/qapplication.html#setStyleand see if that makes it look differently.
-
I have used this :
QFont newFont("Courier", 12, QFont::Bold, true); QApplication::setFont(newFont);
the size of font can be changed but the family can not be changed. it shows still the fonts as "Times", not "Courier".
-
@rapid84
Hi what OS is it ?
It might not have that font installed. -
@mrjj
OS is raspbian. -
@rapid84
ok a debian
you should be able to check which font you have with
fc-list -
@mrjj
I have checked with fc-list. and i have tried with my any installed font but the result didn't change. I still can not change the font type. -
@rapid84
Ok. that is odd.
Have you tested with other program that support fonts.
editor or something like that. -
@mrjj
Yes i have tested, it works in text editor, i can change the font type in the text editor. -
@rapid84
Ok. odd.
Maybe see if Qt think the same as fc-list
using some from
http://doc.qt.io/qt-5.5/qfontdatabase.html#details
Do yo use stylesheet or anything that might overrule? -
@mrjj
No i don't use any stylesheet. I am new on qt creator and i don't know how to use qfontdatabase. I will try to use.