PDA

View Full Version : Font Size Problem on Qt 4.7 on Embedded Linux Platform



samueleforconi
21st May 2012, 16:52
Hi,
I'm developing with QtCreator/QtDesigner on a Linux PC and I'm cross compiling for an ARM board using Qt 4.7.
On the Qt application that runs on the ARM board I need some QLabels with large fonts (I set to 48pt on the QtDesigner), but when I load the executable on the ARM board those fonts are not as large as I see them on the QtDesigner interface (and on my Linux PC), and even if I set a bigger font size, when I run the application on the board, the fonts have always the same size (as if it were reached a maximum font size).

I've tried different ways of setting the font:
- using CSS with font-size: 48pt;
- using font.setPointSize(48); and ui->label->setFont(font);
but none of these have worked.

Any help/suggestions are appreciated.
Thank you for your help.
Samuele.