Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Font size out of control on Arm9, Linux 2.6, Qt5.3.2 QtWidgets
Forum Updated to NodeBB v4.3 + New Features

Font size out of control on Arm9, Linux 2.6, Qt5.3.2 QtWidgets

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 698 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JCAndle
    wrote on last edited by
    #1

    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));
    @

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved