Skip to content

Mobile and Embedded

The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
14.2k Topics 62.7k Posts
  • Qt Quick for Android, font customisation

    Unsolved
    2
    0 Votes
    2 Posts
    291 Views
    B
    embedded this code into main.cpp to see, would it change behavior or not int fontId = QFontDatabase::addApplicationFont("qrc:/assets/fonts/Expansiva.otf"); QStringList availableFonts = QFontDatabase::families(); if (fontId == -1) { qDebug() << "Error: Failed to load custom font from resource."; } else { QStringList fontFamilies = QFontDatabase::applicationFontFamilies(fontId); if (fontFamilies.isEmpty()) { qDebug() << "Error: No font families loaded."; } else { qDebug() << "Font family loaded successfully: " << fontFamilies.first(); // Step 2: Set the font style (font family, size, and optional weight or style) QFont customFont; customFont.setFamily(fontFamilies.first()); // Use the loaded font's family name customFont.setPointSize(12); // Set desired font size customFont.setBold(true); // Make the font bold (optional) customFont.setItalic(false); // Set italic (optional) // Step 3: Apply the custom font globally app.setFont(customFont); } } this address does not provide access to font file: "qrc:/assets/fonts/Expansiva.otf" this, yes: ``` "calc_salary/fonts/Expansiva.otf" resource.qrc looks like <RCC> <qresource prefix="/assets"> <file>fonts/Expansiva.otf</file> <file>fonts/ExpansivaBold.otf</file> <file>fonts/ExpansivaBoldItalic.otf</file> <file>fonts/ExpansivaItalic.otf</file> <file>fonts/ArtsyNight.otf</file> <file>fonts/ROSEMERO.ttf</file> </qresource> </RCC> is it right or not, smart people has to estimate it
  • Cross Compilation

    Unsolved
    2
    0 Votes
    2 Posts
    348 Views
    jsulmJ
    @rohan136 Start here: https://doc.qt.io/qt-6/android.html
  • How to Send Rotary Encoder Signals Only to Visible QML Components?

    Unsolved
    4
    0 Votes
    4 Posts
    484 Views
    GrecKoG
    @Yaldiz said in How to Send Rotary Encoder Signals Only to Visible QML Components?: The problem is that components inside a StackView do not have their visible property set to false even when they are not displayed on the screen. They do.
  • 0 Votes
    2 Posts
    167 Views
    Z
    @zhulinhai Can't the Bluetooth module of Qt6.5.3 search for Bluetooth 5.0 protocol? I saw that you can search for native Android
  • regarding the Bluetooth permission issue in iOS 18

    Unsolved
    1
    0 Votes
    1 Posts
    407 Views
    No one has replied
  • Cross-compile Qt5 for aarch64 CMakelists.txt

    Unsolved
    1
    0 Votes
    1 Posts
    244 Views
    No one has replied
  • Android: Build failed with exception. Could not determine Java version from '11.0.10'

    Unsolved
    15
    0 Votes
    15 Posts
    6k Views
    L
    @morte This solution helped me. I downgraded to 8 and everything compiled.
  • Linux boot to Application and Touchscreen Issue

    Unsolved
    1
    0 Votes
    1 Posts
    157 Views
    No one has replied
  • Qt6 private headers not found

    Unsolved
    1
    0 Votes
    1 Posts
    421 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    27 Views
    No one has replied
  • QT6.6.1 Opengl Cross-Compilation

    Unsolved
    8
    0 Votes
    8 Posts
    2k Views
    jsulmJ
    @Massinissa_idiri said in QT6.6.1 Opengl Cross-Compilation: wrong architecture detected Then you're mixing binaries for different architectures. You will have to provide more information: Post the actual error message Explain how you're creating the sysroot Show how you build
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    12 Views
    No one has replied
  • Version Compatibility

    Solved
    6
    0 Votes
    6 Posts
    1k Views
    alexander.sageA
    app is now compiled in debug mode and deployed to tablet. compiling in release mode isn't working.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    28 Views
    No one has replied
  • Transparent top statusbar on IOS

    Unsolved
    1
    0 Votes
    1 Posts
    222 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    23 Views
    No one has replied
  • How to set QML app font as the Android user selected font?

    Unsolved
    1
    0 Votes
    1 Posts
    145 Views
    No one has replied
  • [arm64-v8a] Qt 6.6.0 Android app crashes in OS11 with "Undefined instruction"

    Unsolved
    3
    0 Votes
    3 Posts
    463 Views
    B
    Hi @Vince_SiriusXM. Did you ever found a fix or workaround for this issue?
  • Map Not Updating in QML Despite Receiving GPS Data

    Unsolved
    3
    0 Votes
    3 Posts
    387 Views
    S
    i made it myself
  • How get result from system activity? ( ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION )

    Unsolved
    1
    0 Votes
    1 Posts
    241 Views
    No one has replied