Font size out of control on Arm9, Linux 2.6, Qt5.3.2 QtWidgets
-
If I use QtCreator to make a form under MSVC201 (Windows) the fonts render.
If I build it in QtCreator under Ubuntu 14.04, the fonts render properly.
If I cross compile () to Linux 2.6 on Arm920t the fonts are tiny. If I intentionally oversize them 2-3 times the desired size, I get what I want. They are apparently scaling and i do not know how to scale them.I've started this post almost daily for a week or two and never finished it because I am not sure what else to say up front...
the font is dejavu serif [QtEmbedded] and it is installed on my machine.
here is a sample of the setup generated from the form:
@ void setupUi(QMainWindow *MainWindow)
{
if (MainWindow->objectName().isEmpty())
MainWindow->setObjectName(QStringLiteral("MainWindow"));
MainWindow->resize(480, 272);
QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(MainWindow->sizePolicy().hasHeightForWidth());
MainWindow->setSizePolicy(sizePolicy);
MainWindow->setMinimumSize(QSize(480, 272));
MainWindow->setMaximumSize(QSize(480, 272));
MainWindow->setBaseSize(QSize(480, 272));
QFont font;
font.setFamily(QStringLiteral("DejaVu Serif"));
font.setPointSize(10);
font.setBold(true);
font.setItalic(false);
font.setWeight(75);
MainWindow->setFont(font);
MainWindow->setDockOptions(QMainWindow::AllowTabbedDocks);
centralWidget = new QWidget(MainWindow);
centralWidget->setObjectName(QStringLiteral("centralWidget"));
verticalLayoutWidget = new QWidget(centralWidget);
verticalLayoutWidget->setObjectName(QStringLiteral("verticalLayoutWidget"));
verticalLayoutWidget->setGeometry(QRect(10, 90, 91, 161));
verticalLayout = new QVBoxLayout(verticalLayoutWidget);
verticalLayout->setSpacing(0);
verticalLayout->setContentsMargins(11, 11, 11, 11);
verticalLayout->setObjectName(QStringLiteral("verticalLayout"));
verticalLayout->setContentsMargins(0, 0, 0, 0);
pB_Num = new QPushButton(verticalLayoutWidget);
pB_Num->setObjectName(QStringLiteral("pB_Num"));
pB_Num->setEnabled(true);
sizePolicy.setHeightForWidth(pB_Num->sizePolicy().hasHeightForWidth());
pB_Num->setSizePolicy(sizePolicy);
pB_Num->setMinimumSize(QSize(86, 22));
pB_Num->setMaximumSize(QSize(86, 26));
@