Skip to content

Mobile and Embedded

The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
13.9k Topics 61.7k Posts
  • UI doesn´t refresh on Android

    Unsolved
    6
    0 Votes
    6 Posts
    347 Views
    M

    Not solved in 6.8 :(

  • QTreeView on QMainWindow Impossible to Select Row

    Unsolved
    5
    0 Votes
    5 Posts
    242 Views
    M

    Not solved in 6.8 :(

  • 0 Votes
    4 Posts
    184 Views
    ekkescornerE

    HA ! then you must verify that the version code is different for the archs and with each release higher
    take a look at my pages HowTo do this
    for CMake: https://t1p.de/ekkeCMakeAndroid
    for QMake: see in this example: https://github.com/ekke/c2gQtWS_x/blob/master/c2gQtWS_x.pro

  • 0 Votes
    1 Posts
    58 Views
    No one has replied
  • sdk cant be found in qt

    Unsolved
    4
    0 Votes
    4 Posts
    167 Views
    ekkescornerE

    easiest way is to use an empty folder for 'Android SDK Location' and hit 'Set Up SDK'. QtCreator will download all what's needed

  • Qt 5.15.2 on iOS no longer builds

    Unsolved
    3
    0 Votes
    3 Posts
    159 Views
    J

    @Axel-Spoerl Thanks, this is very helpful. I have been putting off the upgrade to 6, so time to just get it done.

  • QtMultimedia backend setup

    Unsolved
    7
    0 Votes
    7 Posts
    679 Views
    SGaistS

    One other option is to rebuild the ffmpeg backend (just it) with your system provided librairies.

  • 0 Votes
    8 Posts
    411 Views
    Axel SpoerlA

    There is nothing general in the docs, that would say: This is faster, because….
    Qt 6 follows a general trend: Use more caching for the sake of speed. There were some optimisations in container classes and string views. We fixed a mem leak in the Quick pixmap cache.

    The downside of more caching, in other words higher memory consumption, is that older memory constrained setups (mainly embedded) need to swap out and actually become slower.

    But I guess that’s not a Qt specific phenomenon. All frameworks and other tools I use on a daily basis, have increased their appetite for memory as RAM becomes cheaper and larger.

  • catch Android back button from navigation bar

    Solved
    11
    0 Votes
    11 Posts
    448 Views
    S

    Solution found...
    in android manifest, in <application> i must deactivate enableOnBackInvokedCallback, so correct is:

    android:enableOnBackInvokedCallback="false"

    from this point, all works as expected
    seems as new thing from android 13 according to google search

  • The latest version of QT6 has a bug

    Unsolved
    4
    0 Votes
    4 Posts
    216 Views
    Axel SpoerlA

    Before you file a bug report: Can you boil this down to a simple reproducer?
    I am asking, because I can't help the feeling that the issue is caused by the application. The crash happens, when the input connection dies, before the delayed restart is executed. That shouldn't be the case under normal circumstances.

    => Is there a Qt version where this didn't happen?
    Even if there is, a small change in event processing can uncover this issue.

  • no popups when Virtual Keyboard is included on RPI4

    Unsolved
    2
    0 Votes
    2 Posts
    206 Views
    R

    Hello,
    I ran into the same log error messages, when handling a ComboBox in a Qt program running on a custom Compositor. @ulmstefan any outcome to this?

  • 0 Votes
    1 Posts
    72 Views
    No one has replied
  • FireBase and Qt6

    Unsolved
    27
    0 Votes
    27 Posts
    2k Views
    J

    After doing some research, I was able to integrate QtFirebase into my Qt Android application, but I am encountering the RunTime issue below. I have tried various solutions, but the issue still persists.

    I am encountering a runtime issue with my Android project using Qt and Firebase. Upon attempting to launch the app, it crashes with the following error:

    `W Zygote : Unable to open libbeluga.so: dlopen failed: library "libbeluga.so" not found.
    E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.croyance.messenger/com.croyance.messenger.Main}: java.lang.ClassNotFoundException: Didn't find class "com.croyance.messenger.Main" on path: DexPathList...

    The full logs can be found below. It seems that both the libbeluga.so native library and the Main activity are missing from the APK, which causes the application to fail at runtime. Additionally, there are several warnings related to Firebase initialization and some ANR (Application Not Responding) logs, which may be relevant.

    `W Zygote : Unable to open libbeluga.so: dlopen failed: library "libbeluga.so" not found. I libc : SetHeapTaggingLevel: tag level set to 0 I yance.messenge: Late-enabling -Xcheck:jni I yance.messenge: Unquickening 21 vdex files! E yance.messenge: Unknown bits set in runtime_flags: 0x40000000 E RefClass: java.lang.reflect.InvocationTargetException I OneTrace: Mark active for pid=25278? true E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.croyance.messenger.Main" on path: DexPathList[[zip file "/data/app/~~AaqN-4a0auFr8HV_MJwQ3g==/com.croyance.messenger-itiNKy_Da7NGfGLvDCWqRw==/base.apk"],nativeLibraryDirectories=[/data/app/~~AaqN-4a0auFr8HV_MJwQ3g==/com.croyance.messenger-itiNKy_Da7NGfGLvDCWqRw==/lib/arm64...

    I have correctly configured the AndroidManifest.xml file with the following activity declaration for Main:

    <activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density" android:name=".Main" android:label="FireBaseQTVersion1" android:screenOrientation="unspecified" android:launchMode="singleTop"> </activity>

    I have followed the setup guidelines for Android in the QtFirebase documentation, specifically as outlined in the Setup.

    Environment:

    Qt Version: 5.15.2 Firebase C++ SDK Version: 6.7.0 Android NDK Version: 21.3.6528147 Gradle Version: 5.6.4 Operating System: Linux
  • Boot2qt - how to exclude Qt packages / features

    Unsolved
    3
    0 Votes
    3 Posts
    163 Views
    J

    firstly thanks Axel for noticing. I'm very new to boot2qt & yocto and laying at beginning of the learning curve. I've followed not so complete documentation of Boot2Qt and created my own layer trying to set my own build. The truth is I don't know which variables nor arguments to use. I'm familiar with Windows desktop builds and so far i've tried the same approach passing a "-skip qtdecalarative" to EXTRA_QMAKEVARS_PRE variable, which is incorrect.

    Any help welcome and highly appreciated.

  • 0 Votes
    2 Posts
    91 Views
    Axel SpoerlA

    Which Android SDK/NDK Version is installed on the desktop?

  • Qt Quick for Android, font customisation

    Unsolved
    2
    0 Votes
    2 Posts
    100 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
    155 Views
    jsulmJ

    @rohan136 Start here: https://doc.qt.io/qt-6/android.html

  • 0 Votes
    4 Posts
    159 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
    66 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
    130 Views
    No one has replied